Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Binary code

Status
Not open for further replies.

Kulla

Technical User
Jul 30, 2002
16
US
What makes a piece of binary code Position Independent?
 
All the addresses are relative and they are only resolved when the program is loaded into memory.
 
So is that the only property of position independent code?
 
> All the addresses are relative and they are only resolved
> when the program is loaded into memory.

To be more exact - adresses of positionaly DEPENDENT code are resolved also only when the program is loaded into memory - it is done by loader. Positionaly INDEPENDENT code actually is such code, wich can be moved to any memory location without any additional code correction or register assignment - the code finds it's location in memory by itself.

> So is that the only property of position independent code?

What else did you expect?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top