Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: ivie@cc.usu.edu (Roger Ivie)
Subject: Re: Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT
Date: 1997/12/20	[thread overview]
Message-ID: <M9AMQpOk2kgq@cc.usu.edu> (raw)
In-Reply-To: qxpiusp3wnn.fsf@foobar.cs.colorado.edu


In article <qxpiusp3wnn.fsf@foobar.cs.colorado.edu>, Dirk Grunwald <grunwald@foobar.cs.colorado.edu> writes:
> "Ant Moore" <AntMoore@btinternet.com.nospam> writes:
>> Optimization doesn't have anything to do with "non-standard" coding
>> practices. If the code is legal (in that it compiles) then the only
> ---
> 
> This is the root of your problem. Just because code compiles doesn't
> mean it's 'legal'. Optimization can expose errors in your code due to
> code movement, use of temporaries, differences in the memory layout --
> any number of things. If your code is 'correct', as opposed to
> 'legal', these shouldn't matter.

My favorite VMS FORTRAN compiler bug (circa VMS 3.0) went something like this.
I was reading a file into an array using both an END= clause and an implied
do loop. I'm going to totally botch the syntax (it's been a _long_ time since
I last used an implied do loop, and I always had to look them up in the manual
anyway):

	READ(mumble,END=100)Booger(I),I=1,512

Then I wanted to look at I to see how much data was read.

The compiler generated code which:

	- Moved 512 to I
	- Ran the implied DO loop with a register for the counter

so that when the END= fired, I was always 512 regardless of how many items
had been read. I had to compile that particular subroutine /NOOPTIMIZE to
get it to work right.

AFAIK the code is legal, although perhaps a bit unusual...
-- 
-------------------------+------------------------------------------------
Roger Ivie               | Impeach Bob Palmer!
ivie@cc.usu.edu          |
http://cc.usu.edu/~ivie/ |



  parent reply	other threads:[~1997-12-20  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           ` 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                         ` 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
1997-12-17  5:00                                 ` Ant Moore
1997-12-20  5:00                                 ` Roger Ivie [this message]
1997-12-17  5:00                               ` 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                     ` Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT applications anywhere?) Larry Kilgallen
1997-12-13  5:00                     ` Alpha Dead? Naaahhhh Mark E. Levy
     [not found]                     ` <3491FFE2.E1D71B82 <KETIL-87yb1l2g14.fsf@jenufa.infotek.no>
1997-12-19  5:00                       ` Alpha Dead? Naaahhhh.... (was Re: Is there a list of Alpha NT applications anywhere?) Nigel Arnot
1997-12-19  5:00                         ` Marc Lepage
1998-01-03  5:00                         ` Yasha
1997-12-05  5:00           ` Joshua Cope
1997-12-05  5:00           ` Douglas H. Borsom
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-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