effect of -fPIC on code speed

Andrew Haley aph@redhat.com
Thu Sep 16 14:31:00 GMT 2010

On 09/16/2010 03:25 PM, Miles Bader wrote:
> Andrew Haley <aph@redhat.com> writes:
>> I don't think it will do much harm, but I don't think it will do much
>> good either.  There will be some size increase with PIC, and that will
>> inevitably cause some slowdown.  Some processors are better than others:
>> 32-bit x86 isn't so good with PIC.
> Hmm, I wonder why my objs seemed to mostly get smaller...

Hard to say.  I'd have to look.

> Is PIC on x86-64 notably better than x86?



More information about the Gcc-help mailing list