Big Size

Joe Buck jbuck@synopsys.com
Wed Jul 29 16:09:00 GMT 1998


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



More information about the Gcc mailing list