Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Marc Lepage <mlepage@cgocable.net>
Subject: Re: Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT applications anywhere?)
Date: 1997/12/15	[thread overview]
Message-ID: <3495F1F3.9921EB3@cgocable.net> (raw)
In-Reply-To: qxp3ejvn22t.fsf@foobar.cs.colorado.edu


Dirk Grunwald wrote:
> 
> Marc Lepage <mlepage@cgocable.net> 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



  reply	other threads:[~1997-12-15  5:00 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-03  5:00 Is there a list of Alpha NT applications anywhere? Scott
1997-12-03  5:00 ` Tim Mallery
1997-12-03  5:00   ` The One
1997-12-03  5:00   ` Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT applications anywhere?) Terry Shannon
1997-12-04  5:00     ` Rob Young
1997-12-04  5:00       ` CoffeeBean
1997-12-04  5:00         ` Paul Doherty
1997-12-05  5:00           ` Douglas H. Borsom
1997-12-05  5:00           ` James Van Buskirk
1997-12-05  5:00             ` Paul Bunn
1997-12-06  5:00             ` Paul DeMone
1997-12-06  5:00               ` John Wilson
1997-12-06  5:00                 ` jf mezei
1997-12-07  5:00             ` Ron Freimuth
     [not found]             ` <3488E394.4C6A@EasyInternet.ne <34891ECB.222E@videotron.ca>
1997-12-12  5:00               ` Nigel Arnot
1997-12-12  5:00                 ` Jeffrey Potoff
1997-12-12  5:00                   ` jf mezei
1997-12-12  5:00                     ` Marc Lepage
1997-12-12  5:00                       ` Arun Sharma
1997-12-13  5:00                       ` Gregg E Economou
1997-12-13  5:00                         ` Marc Lepage
1997-12-14  5:00                           ` Dirk Grunwald
1997-12-15  5:00                             ` Marc Lepage [this message]
1997-12-17  5:00                               ` Joe Mario
1997-12-19  5:00                                 ` Marc Lepage
1997-12-15  5:00                           ` Jeffrey Potoff
1997-12-16  5:00                             ` Ant Moore
1997-12-16  5:00                               ` Dirk Grunwald
1997-12-16  5:00                                 ` Ketil Z Malde
1997-12-16  5:00                                   ` John Hascall
1997-12-17  5:00                                   ` Dirk Grunwald
1997-12-17  5:00                                 ` Ant Moore
1997-12-20  5:00                                 ` Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT Roger Ivie
1997-12-17  5:00                               ` Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT applications anywhere?) Joshua Cope
1997-12-18  5:00                                 ` Ant Moore
1997-12-19  5:00                                   ` Marc Lepage
1997-12-13  5:00                         ` jf mezei
1997-12-13  5:00                       ` Like a tea tray in the sky...
1997-12-14  5:00                         ` Agtabby
1997-12-15  5:00                       ` Jeffrey Potoff
1997-12-15  5:00                       ` Alpha Dead? Naaahhhh Michael Moroney
1997-12-13  5:00                     ` Mark E. Levy
1997-12-13  5:00                     ` Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT applications anywhere?) Larry Kilgallen
     [not found]                     ` <3491FFE2.E1D71B82 <KETIL-87yb1l2g14.fsf@jenufa.infotek.no>
1997-12-19  5:00                       ` Nigel Arnot
1997-12-19  5:00                         ` Marc Lepage
1998-01-03  5:00                         ` Yasha
1997-12-05  5:00           ` Robin Garner
1997-12-05  5:00           ` Joshua Cope
1997-12-06  5:00           ` Jeffrey Potoff
1997-12-07  5:00             ` John Welter
1997-12-04  5:00         ` Rob Young
1997-12-04  5:00           ` CoffeeBean
1997-12-04  5:00             ` Terry Shannon
1997-12-05  5:00             ` Rob Young
1997-12-04  5:00               ` Arun Sharma
1997-12-05  5:00             ` Alpha Dead? Naaahhhh Robin Garner
1997-12-05  5:00               ` Ketil Z Malde
1997-12-06  5:00           ` Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT applications anywhere?) jf mezei
     [not found]       ` <666au <66721l$olt$1@netnews.upenn.edu>
1997-12-05  5:00         ` Nigel Arnot
1997-12-07  5:00           ` Paul Doherty
1997-12-04  5:00   ` Is there a list of Alpha NT applications anywhere? Chris Morgan
1997-12-04  5:00   ` Anders Blicher Petersen
1997-12-08  5:00   ` Joshua Cope
1997-12-12  5:00     ` Bruce Harris
1997-12-03  5:00 ` Terry Shannon
1997-12-04  5:00   ` Daniel Doguet
1997-12-04  5:00 ` Bill Merriam
1997-12-04  5:00 ` Joshua Cope
1997-12-05  5:00 ` Justin Young
1997-12-06  5:00   ` Agtabby
1997-12-12  5:00   ` Bruce Harris
1997-12-12  5:00     ` Arun Sharma
1997-12-13  5:00       ` Douglas H. Borsom
1997-12-13  5:00         ` Arun Sharma
1997-12-19  5:00           ` mleune
1997-12-16  5:00     ` Ketil Z Malde
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox