Custom Search

Wednesday, December 19, 2007

-fpic OR -fPIC

When preparing dynamic libraries on Linux, there is always a choice about selecting -fpic / -fPIC.


The difference lies mostly on RISC architectures. -fpic seems to take lesser number of instructions as compared to -fPIC .

For more details - refer to Section 2, in the document - "How to write Shared Libraries" by Ulrich Drepper.

No comments: