Re: will using -fPIC affect performance ?

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

 



john wrote:
Will using -fPIC affect the performance in anyway ? Does it disable any optimazations ?
If you had read 'info gcc' you'd have seen this is target dependent. Typically, it may introduce additional overhead on function calls, compared with non-relocatable code. On targets where this is an issue, certain libraries (e.g. libm) might be static linked to avoid the overhead, which used to approach 5% on ia64.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux