Huge binaries?

Jason Merrill jason@cygnus.com
Fri Nov 19 07:54:00 GMT 1999


>>>>> 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


More information about the Libstdc++ mailing list