Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Dirk Grunwald <grunwald@foobar.cs.colorado.edu>
Subject: Re: Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT applications anywhere?)
Date: 1997/12/17	[thread overview]
Message-ID: <qxpd8iwgiw5.fsf@foobar.cs.colorado.edu> (raw)
In-Reply-To: KETIL-87yb1l2g14.fsf@jenufa.infotek.no


Ketil Z Malde <ketil@ii.uib.no> writes:
> Shouldn't a working compiler either:
> 
> 	compile the program to working object code for all cases of
> 	optimization and or debugging options
> or
> 	issue an error message to the effect that the program is illegal?
--

There are cases where this is impossible, or not defined in the
language. Consider the following:

foo() { int a; bar(&a);}

bar(int *x) {
	x[0] = 1;
	x[1] = 2;
}

You can generalize this example such that the precise information you
need from flow analysis is clearly not available. In this particular
example, the error will be shown depending on the stack layout of the
frame in procedure 'foo'. When not optimizing, all of the variables in
'foo' would be allocate to the stack, creating a large frame -- and
the code might not immediately die. With optimization, more variables
are promoted to registers, resulting in a shorter frame. It's more
likely that 'bar' will overwrite e.g.., the return stack information
in the frame, leading to an obvious error.

Some of these kinds of problems are related to weak type checking in
the C language. If someone was using Ada95 and told me they had errors
when they invoked the optimizer, I would be more suspicious of the
compiler. In C, I'm almost always suspicious of the program.


-- 
Dirk Grunwald                 Assoc. Prof, Univ. of Colorado at Boulder



  parent reply	other threads:[~1997-12-17  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 ` Terry Shannon
1997-12-04  5:00   ` Daniel Doguet
1997-12-03  5:00 ` Tim Mallery
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           ` Robin Garner
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                         ` jf mezei
1997-12-13  5:00                         ` Marc Lepage
1997-12-14  5:00                           ` Dirk Grunwald
1997-12-15  5:00                             ` Marc Lepage
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 [this message]
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                       ` Like a tea tray in the sky...
1997-12-14  5:00                         ` Agtabby
1997-12-15  5:00                       ` Alpha Dead? Naaahhhh Michael Moroney
1997-12-15  5:00                       ` Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT applications anywhere?) Jeffrey Potoff
1997-12-13  5:00                     ` Alpha Dead? Naaahhhh 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           ` 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             ` Alpha Dead? Naaahhhh Robin Garner
1997-12-05  5:00               ` Ketil Z Malde
1997-12-05  5:00             ` Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT applications anywhere?) Rob Young
1997-12-04  5:00               ` Arun Sharma
1997-12-06  5:00           ` 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-03  5:00   ` Is there a list of Alpha NT applications anywhere? The One
1997-12-04  5:00   ` Anders Blicher Petersen
1997-12-04  5:00   ` Chris Morgan
1997-12-08  5:00   ` Joshua Cope
1997-12-12  5:00     ` Bruce Harris
1997-12-04  5:00 ` Joshua Cope
1997-12-04  5:00 ` Bill Merriam
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