From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1125fa,10b7a9a3731f3fc8 X-Google-Attributes: gid1125fa,public X-Google-Thread: fb9cd,10b7a9a3731f3fc8 X-Google-Attributes: gidfb9cd,public X-Google-Thread: 1164f8,10b7a9a3731f3fc8 X-Google-Attributes: gid1164f8,public X-Google-Thread: f782f,10b7a9a3731f3fc8 X-Google-Attributes: gidf782f,public From: Marc Lepage Subject: Re: Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT applications anywhere?) Date: 1997/12/19 Message-ID: <349B2668.539BA9D2@cgocable.net>#1/1 X-Deja-AN: 308736604 Content-Transfer-Encoding: 7bit References: <34915AEE.41C6@atlas.cheme.cornell.edu> <3491F2D7.28E3@videotron.ca> <3491FFE2.E1D71B82@cgocable.net> <66u8pn$833@usenet.srv.cis.pitt.edu> <3492CA68.16C7916C@cgocable.net> <34955C3B.167E@atlas.cheme.cornell.edu> <01bd0a54$17733a00$8404a8c0@ant> <34980322.288D@star.enet.dec.com> <01bd0b9f$56ac9b20$8404a8c0@ant> Content-Type: text/plain; charset=us-ascii Organization: Infinisys MIME-Version: 1.0 Newsgroups: comp.os.ms-windows.nt.admin.misc,comp.os.ms-windows.nt.advocacy,comp.sys.dec,comp.os.ms-windows.nt.misc Ant Moore wrote: > > Joshua Cope wrote in article > <34980322.288D@star.enet.dec.com>... > > > "Internal program timing" isn't the only programming error that can > > come out of the woodwork when optimization is enabled. Another > > is that uninitialized variables "break" more often in optimized code. > > I saw one of these a couple of weeks ago - the program worked great > > until we used /OPTIMIZE; it turned out that it assumed an > > uninitialized counter started out at zero. I try to check for uninitialized variables, temporaries, etc. I think I would have noticed them in investigating my bug. :-) > The "internal timings" reference was an illustration, not an > exhaustive list. > > Your example is simply an error in the source code. I have no problem > when an optimizer exposes such errors. If a programmer makes such > assumptions as your example in his source code, then he deserves all > he gets. > > > Just because a problem happens (only) in optimized builds doesn't > > mean there's a bug in the optimizer. It just means more investigation > > is required. > > Agreed. But in such an investigation, one shouldn't assume that the > compiler/optimizer is blameless! I used to, until I found my second optimizer/compiler bug. Now I know a few symptoms that may point to such problems, such as the aforementioned "uninitialized variable" phenomenon. I don't rule it out now, although I assume its probability is very low. > > (And if there is a bug and you want it fixed, please report > > it along with a short reproducer program!) > > I do. > > Cheers, > > Ant. (Tamworth, England) > > -- > "... Make me one with everything." The Dalai Lama at a hotdog stand. > > My e-mail address is disguised. Remove .nospam to reply. -- SEGV