This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Large size of C++ v3 libs
- To: Ryszard Kabatek <rumcajs at gmx dot net>
- Subject: Re: Large size of C++ v3 libs
- From: <llewelly at dbritsch dot dsl dot xmission dot com>
- Date: Fri, 12 May 2000 14:16:12 -0600 (MDT)
- Cc: gcc at gcc dot gnu dot org
On Fri, 12 May 2000, Ryszard Kabatek wrote:
> I compiled the gcc (egcs-20000501) on Linux (SuSE 6.2) with
> --enable-libstdcxx-v3.
> The build was successfull, but the size of the libraries is really large:
> libstdc++.a - 24584366 bytes,
> libstdc++.so.3.0.0 - 5718674 bytes.
I believe the libraries are built with -g by default. Since they are
experimental, and thus probably buggy, this is usually a good
thing. However, it greatly increases the size of the binaries.
If you decide to strip(1) them, be careful. On my i686-pc-linux-gnu, with
binutils 2.9.5.0.41, I need to use 'strip --strip-debug foo.a' and *not*
'strip --strip-unneeded foo.a'. The --strip-unneeded rips out the stack
unwinding stuff needed for exceptions, which it seems to consider
'unneeded'