This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: help with shriking binary size


> 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...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]