This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Huge binaries?
- To: Gerald Gutierrez <gutier at intergate dot bc dot ca>
- Subject: Re: Huge binaries?
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Fri, 19 Nov 1999 01:57:23 -0800 (PST)
- cc: libstdc++ at sourceware dot cygnus dot com
> 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