help with shriking binary size

Peter Kurpis pkurpis@keck.hawaii.edu
Wed Sep 11 16:16:00 GMT 2002


> From gcc-help-return-10062-pkurpis=keck.hawaii.edu@gcc.gnu.org Wed Sep 11 13:06:35 2002

> I need some help.  I have been running some comparisons with 2.95.3 and
> 3.2 and found that with the same machine and same source code, 3.2
> produces code that is larger by 25%-51% larger with no run time
> improvement (tested across several executables and test cases).  Is
> there a way to shrink the size down to the same level as 2.95.3?  Here
> are several cases:
> 
> 2.95.3			3.2
> (-g):30560264		6246679(+51%)
> (-O):8889831		11198086(+26%)
> (-O2):8893383		11458534(+29%)
> (-O3):9009271		11252525(+25%)

Are these just binary sizes from  ls , or segment sizes from  size ?  I am
not an expert, but this could be just the symbol table getting larger.
Also, you could try  strip  on the executables.

Second, are you using the same optimization settings?  This would be a
factor, I would think...



More information about the Gcc-help mailing list