This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs 1.0.2 c++ .o size
- To: bglenden at aoc dot nrao dot edu, egcs at cygnus dot com
- Subject: Re: egcs 1.0.2 c++ .o size
- From: mrs at wrs dot com (Mike Stump)
- Date: Thu, 26 Mar 1998 14:21:45 -0800
> Date: Tue, 24 Mar 1998 17:25:11 -0700
> From: Brian Glendenning <bglenden@aoc.nrao.edu>
> To: egcs@cygnus.com
> While trying egcs, I noticed that the .o files and resulting executables
> are about 50% larger than their g++ 2.7.2 counterparts when compiled
> optimized (-O2 in both cases) on solaris.
.o files now can have excess code in them that will be thrown away at
link time to deal with template instantiations. Larger .o files
doesn't necessarily mean larger a.out files.
> Our binaries are already embarrasingly large - I'd hate to have them
> become 50% more so!
> [The debug binaries are about 25% larger]
Try -fno-exceptions and -fno-rtti, if size matters and you don't need
those two features. I take it you were using size, not ls -l, right?
Also, compare the -O sizes, and see how they differ.