This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs 1.0.2 c++ .o size
- To: bglenden at aoc dot nrao dot edu (Brian Glendenning)
- Subject: Re: egcs 1.0.2 c++ .o size
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Thu, 26 Mar 1998 15:34:23 +0000 (GMT)
- Cc: egcs at cygnus dot com
> We have a largish (wc -l *.cc *.h = 780k) set of libraries and
> applications (primarily) written in C++. The code is fairly heavily
> templated.
>
> While trying egcs, I noticed that the .o files and resulting executables
> are about 50% larger than their g++ 2.7.2 counterparts when compiled
> optimized (-O2 in both cases) on solaris. Is this common, or is
> something bad probably happening (e.g. inlines going static). If
> something bad is probably happening, what are the usual suspects?
>
> Our binaries are already embarrasingly large - I'd hate to have them
> become 50% more so!
Since 2.7.2 , exception handling has been added. You can use the
-fno-exceptions option to avoid the overhead of exception handling.