This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
egcs 1.0 *faster* than Sun's C compiler!!!!
- To: egcs at cygnus dot com
- Subject: egcs 1.0 *faster* than Sun's C compiler!!!!
- From: "Harvey J. Stein" <hjstein at bfr dot co dot il>
- Date: Wed, 17 Dec 1997 13:44:02 +0200
- Reply-To: egcs at cygnus dot com
Thought you guys might like to see this:
Sun, compiled with gcc -O3 -funroll-loops -finline-functions -ffast-math -fomit-frame-pointer -msupersparc
28.88user 0.27system 0:29.26elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps
Sun, compiled with cc -fast -xO4 -xdepend -xchip=ultra -xarch=v8plusa
39.86user 0.21system 0:40.15elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps
Sun, compiled with cc -fast -xO5 -xdepend -xchip=ultra -xarch=v8plusa
39.70user 0.17system 0:39.95elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps
Alpha, compiled with gcc -O2
11.82user 0.15system 0:12.08elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (278major+1690minor)pagefaults 0swaps
The sun is a 200mhz ultra-sparc.
The alpha is a 533mhz alpha.
Expect the sun numbers to go down by 1/3 on a 300mhz ultra-sparc.
Gcc on the sun is egcs 1.0. Gcc on the alpha is gcc 2.7.2.1.
Is it typical that gcc optimizes *better* than Sun's C compiler?
--
Harvey J. Stein
Berger Financial Research
hjstein@bfr.co.il