This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Big Size
- To: jmiguel at iaa dot es (J.Miguel Iban~ez)
- Subject: Re: Big Size
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Wed, 29 Jul 98 16:08:33 PDT
- Cc: egcs at cygnus dot com
> I've recently changed from gcc2 to egcs (1.0.2), but the first and biggest
> difference I've found is that executable size created by egcs is more
> ( and more ) bigger than executable size created by gcc2. Why ??
> I'd like to know which is the reason or/and where can I find more
> information about this.
What platform are you running? What language are you programming in?
If you are doing C++ on an Intel (compatible) platform, then you may be
getting bloat from exception overhead. This will be substantially reduced
in egcs-1.1; otherwise if you are not using exceptions, you can compile
with -fno-exceptions .
(There is also some overhead on other platforms, but on RISC platforms
the exception information is more compact, so people don't notice it as
much).