[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gcc and -fPIC



On Thu, Mar 21, 2002 at 02:27:45PM +0100, Simon Richter wrote:
> On Wed, 20 Mar 2002, Will Newton wrote:
> 
> [PIC or not PIC]
> 
> > I understand the need for PIC, but I was asking whether or not compiling
> > whole binaries with PIC unnecesarily might be a bad thing. e.g. if I cannot
> > control the granularity of compiler options easily in a build system and I
> > build an executable with -fPIC in order to build an accompanying library
> > correctly, am I trading off speed or footprint to any significant degree?
> 
> On most architectures, it doesn't really matter except for heavy
> mathematics and 3D. The only exception is i386, where the performance
> decrease is actually measurable.

Do you really mean "i386", or do you mean "ix86"?
Is there a performance hit with -fPIC on Pentium II/III/IV ?

Curiously yours,
-Steve

-- 
by Rocket to the Moon,
by Airplane to the Rocket,
by Taxi to the Airport,
by Frontdoor to the Taxi,
by throwing back the blanket and laying down the legs ...
- They Might Be Giants



Reply to: