* position indenpendent code
@ 2000-05-04 0:05 Per-Ola Andersson
2000-05-04 14:22 ` Martin v. Loewis
0 siblings, 1 reply; 2+ messages in thread
From: Per-Ola Andersson @ 2000-05-04 0:05 UTC (permalink / raw)
To: gcc-help
Hi,
can anyone please tell me exactly what position independent code means, or
tell me I can find a good source of information? man gcc just states that if
the -fpic is used the gcc generates position independent code, suitable for
use int shared libs.
Thnx
// POA
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: position indenpendent code
2000-05-04 0:05 position indenpendent code Per-Ola Andersson
@ 2000-05-04 14:22 ` Martin v. Loewis
0 siblings, 0 replies; 2+ messages in thread
From: Martin v. Loewis @ 2000-05-04 14:22 UTC (permalink / raw)
To: poa33; +Cc: gcc-help
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-05-04 14:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-04 0:05 position indenpendent code Per-Ola Andersson
2000-05-04 14:22 ` Martin v. Loewis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).