This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Huge binaries?
- To: Benjamin Kosnik <bkoz at cygnus dot com>
- Subject: Re: Huge binaries?
- From: Jason Merrill <jason at cygnus dot com>
- Date: 19 Nov 1999 07:54:16 -0800
- Cc: Gerald Gutierrez <gutier at intergate dot bc dot ca>, libstdc++ at sourceware dot cygnus dot com
- References: <Pine.LNX.4.04.9911190152220.8713-100000@decepticon.cygnus.com>
>>>>> Benjamin Kosnik <bkoz@cygnus.com> writes:
>> When using gcc 2.95.2 and libstdc++, why is it that sometimes binaries
>> can get so HUGE? People must've seen this before. A small program can
>> compile to 600K in size, and even after stripping, it's still well
>> over 100K.
> Take a look at the binary, see what's in it. If you are on an elf
> platform, you may want to investigate using -ffunction-sections
> -fvtable-gc, which should help.
You'd also need '-Wl,--gc-sections'. Unfortunately, this has problems with
dynamic linking last I heard, and is quietly disabled.
> I don't think the bugs with -fPIC have been worked out, so the v-3
> Makefiles don't turn it on by default.
Huh?
Jason