[C++-sig] Reduce the resulting .so file size
Niall Douglas
s_sourceforge at nedprod.com
Wed Dec 29 22:56:47 CET 2004
On 29 Dec 2004 at 14:36, Jonathan Brandmeyer wrote:
> On Wed, 2004-12-29 at 15:33 -0300, João Paulo Fernandes Farias wrote:
> > Hi! > > Is there a way to reduce the final .so file size? > > I've
> ported pyogre to linux and the final .so file is about 63Mb.
>
> If you want to try something experimental, use this patch to reduce
> the default symbol visibility in your module:
> http://www.nedprod.com/programs/gccvisibility.html
No one mentioned that GCC v4 from CVS already contains the GCC
visibility patch, so I will here. They've also changed the
intermediate code description language so it may produce bigger or
smaller final binaries after optimisation (one would think smaller).
Cheers,
Niall
More information about the Cplusplus-sig
mailing list