comp.lang.ada
 help / color / mirror / Atom feed
* Does ObjectAda optimize at all??
@ 1998-08-06  0:00 dennison
  1998-08-06  0:00 ` Jerry van Dijk
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: dennison @ 1998-08-06  0:00 UTC (permalink / raw)


I tried asking their tech support this, but they told me all the engineers are
"going to a function" today.

I'm looking for information on what optimizations ObjectAda (on PC/WinNT) can
perform. The only parameters their compiler and IDE provide are for turning
off checks (which are my least favorite optimization). There's nothing about
register optimization, loop unrolling, hoisting, etc.

I can't find anything about it in their printed documentation. Their online
help has three references; two for turning off checks and one reference to
annex M where they state that they ignore "pragma optimize".

Since I have never got an "optimized away" message from their debugger, I
figured no optimization was being performed. But surely ObjectAda can do
optimizations, right? Right???

T.E.D.

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum




^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Does ObjectAda optimize at all??
@ 1998-08-22  0:00 dewar
  0 siblings, 0 replies; 17+ messages in thread
From: dewar @ 1998-08-22  0:00 UTC (permalink / raw)


T.E.D. says

<<Exactly. I think I'm familiar enough with my own ignorance to aviod this 
personally. But its awfully hard to stop other folks from doing this in their
 own code when they know:

  o  The code in question is called several times from a high-frequency
  routine  o  The complier is unable to do the optimization for them.  o  If
  they manually "optimize" the code later, they are liable to  accidentally
  introduce new bugs (at a very late stage in development). >>


This is missing the most critical criterion, namely that it will actually
make a difference to do the transformation. As I say, often programmers
just don't know it will make a difference. For example, loop unrolling
may or may not help.

A programmer who tries to improve their program with inadequate knowledge
is a completely in the dark. Yes incompetent programmers might do anything
(you always seem to be worrying about them), but there is no reason to think
that knowing anything about the compiler will in positively affect their
behavior if they are this incompetent!

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum




^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~1998-08-22  0:00 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-06  0:00 Does ObjectAda optimize at all?? dennison
1998-08-06  0:00 ` Jerry van Dijk
1998-08-07  0:00   ` dennison
1998-08-07  0:00 ` Tarjei Tj�stheim Jensen
1998-08-07  0:00   ` Robert Dewar
1998-08-09  0:00 ` Dave Wood
1998-08-10  0:00   ` dennison
1998-08-14  0:00     ` Tom Moran
1998-08-14  0:00       ` dennison
1998-08-15  0:00         ` Tom Moran
1998-08-14  0:00           ` Steve Doiel
1998-08-15  0:00         ` Larry Kilgallen
1998-08-17  0:00           ` dennison
1998-08-16  0:00         ` Tom Moran
1998-08-16  0:00         ` Robert Dewar
1998-08-17  0:00           ` dennison
  -- strict thread matches above, loose matches on Subject: below --
1998-08-22  0:00 dewar

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