I'm already using this. This help but I need reduce more because the python binding is about four times bigger then c++ library.
Thanks On Sat, Jan 24, 2009 at 11:13 AM, Niall Douglas <s_sourcefo...@nedprod.com> wrote: > Have you tried -fvisibility=hidden on GCC? That chomps a good few > megabyte off my bindings. > > Cheers, > Niall > > On 23 Jan 2009 at 15:51, Renato Araujo wrote: > >> hi David, >> >> This size is about my library, when I use "class_" and ".def()" >> templates from libboost_python. And about the g++ flags I use -Os >> which includes most of the flags for size optimizations. I tried with >> others flags but the difference is minimum, nothing significant. >> >> Thanks >> >> On Fri, Jan 23, 2009 at 2:43 PM, David Abrahams <d...@boostpro.com> wrote: >> > >> > 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 >> > _______________________________________________ >> > Cplusplus-sig mailing list >> > Cplusplus-sig@python.org >> > http://mail.python.org/mailman/listinfo/cplusplus-sig >> > >> >> >> >> -- >> Renato Araujo Oliveira Filho >> _______________________________________________ >> Cplusplus-sig mailing list >> Cplusplus-sig@python.org >> http://mail.python.org/mailman/listinfo/cplusplus-sig > > > > > _______________________________________________ > Cplusplus-sig mailing list > Cplusplus-sig@python.org > http://mail.python.org/mailman/listinfo/cplusplus-sig > -- Renato Araujo Oliveira Filho _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig