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

Re: fftw3 non-pic k7 optimisations



On Mar 07, Paul Brossier <piem@altern.org> wrote:

> 10.2. Libraries
> ---------------
> 
>      The shared version of a library must be compiled with `-fPIC', and the
>      static version must not be.  In other words, each source unit (`*.c',
>      for example, for C files) will need to be compiled twice.
> 
> hrm, but yeah of course, one could say that it's fine if a
> library compiled with -fPIC still contains non position
> independant code. :)
It's still not generally acceptable, but the policy does not reflect
current practice.
The idea is that PIC code is acceptable on architectures which can
support it (i386 and IIRC another one) *IF* there is a positive tradeoff
between the speed gain and the wasted RAM.
The most situation where non-PIC code is a good idea is a library
containing hand-optimized assembly code. It may still be possible to
rewrite it to be PIC without a major performance loss, but it would
probably take a lot of time.

-- 
ciao,
Marco

Attachment: signature.asc
Description: Digital signature


Reply to: