Mail Archives: djgpp/2000/10/19/12:45:20
> It is unclear whether you mean the compiler is running slowly, or the
> compiled program is running slowly.
OK, I meant the generated code only - I don't care about how slow
the compiler goes. I assume that the more time it takes, the better
it tries to optimise its output.
> Where exactly have you noticed performance degradation? (I do remember
> reading that the optimisations enabled by -O, etc. have changed between
> versions, but this should only give the compiler more work to do.)
Some of the programs I have under hand do run slower.
Target is a Pentium-S 166Mhz.
The options are
* For gcc 2.7.2 (gnat 3.10):
-i -gnatpn -O2 -fomit-frame-pointer -funroll-loops
-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2
* For gcc 2.8.1 (gnat 3.11-3.13):
-i -gnatpn -O2 -fomit-frame-pointer -funroll-loops
-mpentium (with or without the -malign... options)
The code produced by the latest GNAT, 3.13, goes faster
due to a serie of optimisations specific to Ada (using
the information given by strong typing), but does
not compensate - in my tests - the degradation brought
by 2.8.1. Hence my question. Maybe I don't switch on the
right optimisations, too.
Gautier
Sent via Deja.com http://www.deja.com/
Before you buy.
- Raw text -