From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f782f,10b7a9a3731f3fc8 X-Google-Attributes: gidf782f,public X-Google-Thread: fb9cd,10b7a9a3731f3fc8 X-Google-Attributes: gidfb9cd,public X-Google-Thread: 1164f8,10b7a9a3731f3fc8 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1125fa,10b7a9a3731f3fc8 X-Google-Attributes: gid1125fa,public From: Marc Lepage Subject: Re: Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT applications anywhere?) Date: 1997/12/15 Message-ID: <3495F1F3.9921EB3@cgocable.net>#1/1 X-Deja-AN: 298573349 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Infinisys Newsgroups: comp.os.ms-windows.nt.admin.misc,comp.os.ms-windows.nt.advocacy,comp.sys.dec,comp.os.ms-windows.nt.misc Dirk Grunwald wrote: > > Marc Lepage writes: > > > Ha. I turned off the optimization after the second error I found due to > > it. Using only the default level of optimization, I spent several days > -- > > Almost every time that someone tells me "the optimizer broke my code", > the end determination is that the code was wrong or inheritently > non-portable. I disagree. In some cases they are simple C constructs that just got incorrectly optimized. One was a ?: operator in a macro; that's legal, isn't it? The non-optimized code was correct. The optimized code blew up (always returned zero). I compile the same code (not my code, I didn't write it!) on 4-5 different UNIX machines. Each has their problems. The code may not be all perfect, but it is portable, and if it is not, I make it portable. But some errors are due to the compiler. Not many, but some. > This is not to say that the optimizer on the DEC alpha is without > fault, but I will point out that the kernel is compiled with > optimization and all applications are compiled with optimization. Who knows. Maybe our code is weirder. I've seen the DEC compiler optimize away an else-clause, and I've seen the Solaris compiler choke on nested if statements with identical conditions (not an optimizer but a non-debug-mode bug). It happens. It's just happened once or twice more on DEC. -- SEGV