egcs consistently creates slower code than gcc-2.8.1

Jeffrey A Law law@cygnus.com
Thu May 28 22:04:00 GMT 1998


  In message < 19980528235002.A5005@math.fu-berlin.de >you write:
  > The free MP3 encoder is the latest example, but I can also reproduce it
  > on the other programs I tried, like my full-text engine and some
  > searching and sorting tests.  I have an AMD-K6, so maybe egcs code is
  > faster on Intel.  Even the very latest snapshot with the global
  > optimizer is still slower than the gcc-2.8.1 code.  The numbers are:
  > 
  > 41.8 seconds gcc-2.8.1
  > 42.6 seconds egcs-2.91.33 19980525 with Haifa scheduler
  > 40.4 seconds gcc-2.8.1 -fomit-frame-pointer
  > 
  > The options were
  > 
  >   -O3 -funroll-loops -ffast-math		for gcc-2.8.1
  > 
  > and
  > 
  >   -O3 -fno-exceptions -ffast-math		for egcs
Err, shouldn't you use the same options for both compilers?


Also note, the x86 port has not been tuned for the haifa scheduler,
though I don't know how much of a role that is playing.

jeff



More information about the Gcc-bugs mailing list