This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Size of generated programs (fwd)
- To: Bill Walker <bw at student dot ecok dot edu>
- Subject: Re: Size of generated programs (fwd)
- From: Elliot Lee <sopwith at cuc dot edu>
- Date: Mon, 8 Dec 1997 16:06:52 -0500 (EST)
- cc: egcs at cygnus dot com
On Mon, 8 Dec 1997, Bill Walker wrote:
> > I've had egcs up and running for a few days now, and have encountered no
> > problems with the programs I've compiled (other than the ones I make for
> > myself). One thing I've noticed is that the stripped executables are
> > significantly larger than those I get with gcc2. I compile with
> >
> > -O3 -ffast-math -funroll-loops -malign-*=0 -malign-double -march=pentium (or
> > -m486).
>
> I have had essentially the same experience, with C, FORTRAN,
> and C++. The increase is anywhere from about 2% to about 10%, after
> stripping, and running through mcs -d. OTOH, the egcs compiler seems to
> compile things that I just couldn't compile before, so I consider it
> a wash.
Add -fno-exceptions to the command line.
-- Elliot http://www.redhat.com/
"They don't let my code go into shipping products," Gates said. "They
haven't done that for eight years." (at the 1997 PDC)