Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcnc!rti!dg_rtp!harris From: harris@dg_rtp.UUCP (Mark Harris) Newsgroups: comp.lang.c Subject: Re: default initialization of static and extern Message-ID: <2085@dg_rtp.UUCP> Date: Thu, 11-Jun-87 16:29:34 EDT Article-I.D.: dg_rtp.2085 Posted: Thu Jun 11 16:29:34 1987 Date-Received: Sat, 20-Jun-87 13:15:30 EDT References: <158@delftcc.UUCP> <1070@viper.Lynx.MN.ORG> <1297@genrad.UUCP> <675@gargoyle.UChicago.EDU> Reply-To: harris@dg_rtp.UUCP (Mark Harris) Organization: Data General, RTP North Carolina Lines: 15 In article <675@gargoyle.UChicago.EDU> mason@gargoyle.uchicago.edu.UUCP (Tony Mason) writes: >In article <1297@genrad.UUCP> rep@genrad.UUCP (Pete Peterson) writes: >>K&R claims (in at least 3 places) that externs and statics are >>guaranteed to be initialized to zero in the absence of any explicit >>initializations. "The C Programming Language -- Reference Manual" by >>Ritchie as distributed with the BSD documentation makes the same statement. >> >>Are there really compilers which violate this specification? The MISOSYS compiler that runs on TRS-80 Models I, III and IV violates this rule. Other than this and a few trivial and easily work-aroundable bugs, this is an excellent compiler for those folks with TRaShes. Mark