Performance drops with 1.1.2?!

Christian Jönsson FOA 72 chj@lin.foa.se
Wed Mar 31 23:46:00 GMT 1999


Some claim that -Os (for size) produces faster code on PII (i686). I don't 
know, but it might be worth a try.

/ChJ 

> I've just installed egcs 1.1.2 on my Linux box (Pentium II, kernel
> 2.0.35, libc 5.4.46, binutils 2.9.1.0.19a).  Recompiling my
> application with egcs 1.1.2, however, results in my application
> performing up to 5% _slower_ if compared to an egcs 1.1b-compiled
> version.  This behaviour seems to be independent from the optimisation
> level (I've tried -O, -O2, and -O3).
> 
> Has anyone else noticed this behaviour?  What compiler switches should
> I use in addition to -Ox?  My application code relies on exception
> handling and templates.  Thanks in advance.
> 
> 
> Best, Thorsten





More information about the Gcc mailing list