This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Large size of C++ v3 libs


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'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]