[C++-sig] bindings size

David Abrahams dave at boostpro.com
Fri Jan 23 18:43:01 CET 2009


on Fri Jan 23 2009, Renato Araujo <renatox-AT-gmail.com> wrote:

> I'm current using "CXXFLAGS=-ffunction-sections -Os" and "LDFLAGS
> --gc-sections", and the library already striped, without strip the
> size is about 12MB.

There's a lot more you can do.  -fomit-frame-pointer,
-finline-functions, ...man gcc, man

There's no reason in and of itself that templates should cause this
thing to be big.  You /are/ talking about the size of your binding .so
and not libboost_python, right?

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com


More information about the Cplusplus-sig mailing list