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: position indenpendent code


> can anyone please tell me exactly what position independent code
> means, or tell me I can find a good source of information?

Code is *position dependent* if the machine instructions contain
absolute addresses of variables and functions; the exact contents of
the machine code *depends* on the *position* of those variables and
functions.

Code is *position independent* if it is not position dependent.

Regards,
Martin


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