This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Executable size increase using egcs 1.0.1 on Solaris 2.6


	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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]