egcs 1.0 *faster* than Sun's C compiler!!!!

Harvey J. Stein hjstein@bfr.co.il
Wed Dec 17 03:44:00 GMT 1997


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



More information about the Gcc mailing list