Huge binaries?

Benjamin Kosnik bkoz@cygnus.com
Fri Nov 19 01:57:00 GMT 1999


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

HUGE, huh?

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. I don't think the bugs with -fPIC have
been worked out, so the v-3 Makefiles don't turn it on by default.

-benjamin




More information about the Libstdc++ mailing list