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/19 [thread overview]
Message-ID: <349B273F.FA807605@cgocable.net> (raw)
In-Reply-To: 67dpjo$ml9$2@willow.cc.kcl.ac.uk
Nigel Arnot wrote:
> Some of these errors are fundamentally undiagnosable by a compiler.
> For example, suppose you have a routine in a DLL to zero out an
> array, someinthing like
>
> void zero( char *a, int n) { while (n>0) { *a++ = 0; --n; }}
>
> (out of my head, so assume it's correct even if it isn't)
>
> and it gets called by something you are compiling that does
>
> zero( mystuff, m*4)
>
> There's absolutely no way to check when the DLL was compiled that
> mystuff really is a pointer to m*4 chars, and there's no way for
> what you are compiling to know that m*4 is supposed to be the size
> of what mystuff is pointing at. So if you've made an error and
> mystuff is pointing to the wrong place in memory or m has the
> wrong value, something may get zeroed that shouldn't have been.
>
> In these circumstances it's quite probable that optimized and
> non-optimized code will behave differently. It's my experience
> that one more commonly sees a non-optimized version that "works"
> become an optimized one that doesn't. This probably simply
> reflects the fact that most programmers debug non-optimized
> versions first, because symbolic debuggers work best that way,
> and so if the bug had disrupted operation of the non-optimized
> version they'd have immediately looked for a programming error.
> If, however, something that has "worked" for months breaks when
> optimised, they tend to want to blame the optimizer. That's just
> human nature.
True. But, sometimes the optimizer really is wrong. It can have a bug.
It can have a bug that only I have found. It's possible, and has
happened on occasion.
--
SEGV
next prev parent reply other threads:[~1997-12-19 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 ` 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
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
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 ` 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 ` 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 [this message]
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
[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 ` 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