From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb9cd,10b7a9a3731f3fc8 X-Google-Attributes: gidfb9cd,public X-Google-Thread: f782f,10b7a9a3731f3fc8 X-Google-Attributes: gidf782f,public X-Google-Thread: 1164f8,10b7a9a3731f3fc8 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1125fa,10b7a9a3731f3fc8 X-Google-Attributes: gid1125fa,public From: Joshua Cope Subject: Re: Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT applications anywhere?) Date: 1997/12/17 Message-ID: <34980322.288D@star.enet.dec.com>#1/1 X-Deja-AN: 299060881 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> Mime-Version: 1.0 Reply-To: cope@star.enet.dec.com Content-Type: text/plain; charset=us-ascii Organization: Digital Equipment Corporation 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: > > Optimization doesn't have anything to do with "non-standard" coding > practices. If the code is legal (in that it compiles) then the only > difference between optimized code and un-optimized code should be > the execution speed (or size, or a combination of both, if that's what > you're setting your optimization for). Granted, this can fall down if > internal program timings are dependent on the execution time of a > particular chunk of code, but then you are simply getting what you > deserve for writing poor code. "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. 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. (And if there is a bug and you want it fixed, please report it along with a short reproducer program!) ------------------------------------------------------------ The above opinions and information are my own, and not necessarily those of Digital Equipment Corporation. ------------------------------------------------------------