comp.lang.ada
 help / color / mirror / Atom feed
From: "W. Wesley Groleau (Wes)" <wwgrol@PSESERV3.FW.HAC.COM>
Subject: Re: Ada vs. C: performance, size
Date: 1997/01/09
Date: 1997-01-09T00:00:00+00:00	[thread overview]
Message-ID: <9701092035.AA15294@most> (raw)


> > I always figured it to turn off the optimizer for one out of a hundred
> > files was a lot easier than some of the code contortions people would
> > write for the sake of "hand-optimizing".

> I find this difficult to understand. If you understand in detail all the bugs
> in your compilation system and you have tools to inspect your source code so
> that you can identify any files that might suffer from the bugs, then perhaps
> I /would/ agree. My experience is different. Compiler bugs tend to be

On a large project, I would hope that at least five percent of the people
are familiar with compiler bugs.  I would further hope that:

1. Every change of any significance has some sort of peer review, which
   could include watching for such things.
2. Every change of any significance has some sort of testing which could
   detect most of the bugs that escape the review.

> pathelogical, otherwise they would have been found before and fixed (I'm an
> optimist). Often they cause the code to behave oddly under obscure situations
> which, sadly, don't always get tested. If an optimiser significantly
> increases the incidence of latent bugs, that is bad news.

If code is well-engineered, in terms of modularity, simplicity, etc.
not only are there fewer "obscure situations" possible to slip by testing,
but there are also fewer wierd coding techniques to confuse an optimizer.

---------------------------------------------------------------------------
W. Wesley Groleau (Wes)                                Office: 219-429-4923
Hughes Defense Communications (MS 10-41)                 Home: 219-471-7206
Fort Wayne,  IN   46808                  (Unix): wwgrol@pseserv3.fw.hac.com
---------------------------------------------------------------------------




             reply	other threads:[~1997-01-09  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-09  0:00 W. Wesley Groleau (Wes) [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-01-09  0:00 Ada vs. C: performance, size W. Wesley Groleau (Wes)
1997-01-10  0:00 ` Robert Dewar
1997-01-10  0:00   ` Stephen Leake
1997-01-13  0:00 ` Richard A. O'Keefe
replies disabled

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