[CLN-list] growth of libcln.a (was Re: cln/ginac port to windows)

Alexei Sheplyakov varg at metalica.kh.ua
Thu Aug 27 13:11:35 CEST 2009


Hi,

On Wed, Aug 26, 2009 at 02:28:22PM -0400, Michael Miller wrote:
> That is correct; I did not need to patch anything to get cln to compile
> under MinGW.  I do have a question, though.
> 
> In my previous version (gmp-4.2.4 & cln-1.2.2), the three largest files
> produced were:
> 6924998 ./mingw/lib/debug/libstdc++.a
> 5667670 ./mingw/lib/libcln.a
> 4019200 ./mingw/libexec/gcc/mingw32/3.4.5/cc1plus.exe
> 
> Currently (gmp-4.3.1 & cln-1.3.0), the three largest files produced are:
> 131718308 ./mingw/lib/libcln.a
> 6924998 ./mingw/lib/debug/libstdc++.a
> 4019200 ./mingw/libexec/gcc/mingw32/3.4.5/cc1plus.exe
> 
> Note that libcln.a has gone from 5MB to 131MB.  Is that to be expected?

Yes. The library contains debugging info now, and is compiled with different
optimization flags (-O2 instead of -O). If you don't need debugging information
you can either discard it

strip /path/to/libcln.a

or set proper compiler flags when configuring CLN, i.e.

CFLAGS='-O2' CXXFLAGS='-O2' ./configure

Best regards,
	Alexei



More information about the CLN-list mailing list