Jan Varga | 11 Mar 2003 16:36
Picon

Re: GCC 3.4

I just wanted to say that the latest gcc snapshot produces faster and 
smaller code, even with -O2.

Philippe Laporte wrote:
> You might like to try with -Os instead of -O2. I'm not sure how you 
> measured the speed improvements, but as far as size goes, -O2 has some 
> optimizations that conflict with size improvements. -Os is -O2 without 
> these.
> 
> 
> 
> 
> Jan Varga wrote:
> 
>> FYI, I see noticeable speedup and code footprint savings with latest 
>> gcc 3.4 snapshot
>>
>> I tested on Linux, RedHat 8.0, using -O2 switch
>>
>> Results:
>>         Txul    Code size
>> gcc 3.2.2    381    26385K
>> gcc-20030310    362    26005K
>>
>> Improvement    5%      1.5%
>>
>> Code size is sum of components/*.so
>>
>> Note, this is just a difference between gcc 3.2.2 and 3.4-20030310.
>> Official builds still use older versions (pre-3.0) of gcc and -O switch
>> Last time I checked, the difference between official builds and gcc 
>> 3.2 -O2 was around 10%
>>
>> Jan
>>
> 


Gmane