This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
[Fwd: RE: Executable size]
- From: Chris Croswhite <ccroswhite at get2chip dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: 25 Sep 2002 11:15:22 -0700
- Subject: [Fwd: RE: Executable size]
I am currently using 3.2, but I have watched from 2.95 to 3.03, 3.1 and
then 3.2 that the executable is growing by at least 30%. I have tried
this across all optimizations - O,O2,O3,g. In the case of -g, the
executable is 55% larger, in the case of O3 it is 31% larger (than using
2.953).
Here:
2.953:
-g = 30560264
-O = 8889831
-O2 = 8893383
-O3 = 9009271
3.2:
-g = 63274234
-O = 11198086
-O2 = 11458534
-O3 = 11252525
The code base is mixed c/c++ but I use g++ to compile everything. I am
making a statically linked executable.
TIA,
Chris
On Wed, 2002-09-25 at 10:57, Douglas Richardson wrote:
> Chris,
>
> Are you using any optimizations? How are you linking with the runtime
> libraries?
>
> Send the output of gcc -v.
>
> Douglas Richardson.
>
> -----Original Message-----
> From: Chris Croswhite [mailto:ccroswhite@get2chip.com]
> Sent: Wednesday, September 25, 2002 10:55
> To: gcc-help@gcc.gnu.org
> Subject: Executable size
>
>
> Sirs,
>
> I am trying to figure out how to reduce the size of my executable (that
> has grown with the increments of gcc upgrades even though the code base
> has not changed). I would like to understand how I can reduce/cut out
> so that the executable to back down to the 2.953 size. Can anyone give
> me some pointers?
>
> TIA,
> Chris
>