Executable size increase using egcs 1.0.1 on Solaris 2.6
Jim Wilson
wilson@cygnus.com
Tue Apr 21 17:06:00 GMT 1998
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
More information about the Gcc
mailing list