effect of -fPIC on code speed

Miles Bader miles@gnu.org
Thu Sep 16 14:26:00 GMT 2010


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...
Is PIC on x86-64 notably better than x86?

-miles

-- 
The automobile has not merely taken over the street, it has dissolved the
living tissue of the city.  Its appetite for space is absolutely insatiable;
moving and parked, it devours urban land, leaving the buildings as mere
islands of habitable space in a sea of dangerous and ugly traffic.
[James Marston Fitch, New York Times, 1 May 1960]



More information about the Gcc-help mailing list