This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Unusually large data segments in executables.
- To: ben at proximity dot com dot au (The Red Fox)
- Subject: Re: Unusually large data segments in executables.
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Wed, 14 Jan 98 9:14:12 PST
- Cc: egcs at cygnus dot com
> Thanks to all who replied to this and yes the answer was to use
> -fno-exceptions which causes the executable to end up smaller than the one
> produced by g++ 2.7.2.3. I had no idea how much extra code exception
> handling support produced.. blearg!
Yes, the bloat is worst on the x86 architecture; folks are working on
improvements. The good news is that most of the extra stuff gets put
in its own section, which will never be paged into memory unless an
exception is actually thrown (so you pay a disk space cost for exceptions
but not nearly as much of a RAM cost).