This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: -fPIC




hi!

position independent code (PIC) uses the ebx register to store the address of
the
global offset table (GOT), this register should thus be used with caution.
i belive you'r code references ebx with the "...: "b" (b).." expression.

shared libraries are genarally marginally slower than statically linked libs
because the linker has to dynamically evaluate procedure linkage table entries
(PLT),
and modify the global table offset's memory image accordingly (unless the
LD_BIND_NOW
environment variable is set).


regards

Petter Wahlman



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]