This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Executable size increase using egcs 1.0.1 on Solaris 2.6
- To: Yusuf Goolamabbas <yusufg at krdl dot org dot sg>
- Subject: Re: Executable size increase using egcs 1.0.1 on Solaris 2.6
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Tue, 21 Apr 1998 14:46:23 -0700
- cc: egcs at cygnus dot com
Compared to gcc-2.7.2.3, the
code size increase for Hello World is 4x.
This is because of the exception handling support. Even if you compile
without EH, there are still EH related calls in the startup files (crtbegin
and crtend) which cause the EH code from libgcc.a to be linked in. Because
of the structure of this code, the entire frame.c file is brought in, even
though we only need a few small functions.
This problem could be reduced by splitting frame.c into multiple modules,
so that the code size increase is smaller. There will still be an unavoidable
code size increase though.
This problem has not been fixed in snapshots yet.
Jim