[uClibc]compiling with -fPIC

David Schleef ds at schleef.org
Fri Oct 12 22:28:30 UTC 2001


On Fri, Oct 12, 2001 at 10:17:23AM -0500, Cam Mayor wrote:
> David Schleef writes:
> >
> > I've noticed a significant size difference between code compiled
> > with -fpic and without.  Specifically,
> > with:
> >   -rw-r--r--    1 root     root       485172 11. Okt 16:03 libc.a
> > without:
> >   -rw-r--r--    1 ds       ds         465668 11. Okt 19:57 libc.a
> 
> If you think 20k is significant (a 4% saving to you), then you
> might consider using the strip command after compilation.  Then
> again, maybe strip doesn't apply to library compilation - i'm not
> sure.

It's stripped in both cases.  -fpic affects code generation.



dave...






More information about the uClibc mailing list