position indenpendent code

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Thu May 4 14:22:00 GMT 2000


> 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



More information about the Gcc-help mailing list