retagged by
4,448 views
12 votes
12 votes
The most relevant addressing mode to write position-independent code

what is the meaning of postion - independent code
retagged by

2 Answers

Best answer
23 votes
23 votes

Hope it helps!

selected by
16 votes
16 votes
Position-independent code simply means that placing such a piece of code anywhere in the memory does not require additional address modifications. As suggested, PC-relative is the most relevant one. For example, consider base-register based mode wherein the address stored by base register depends on the memory it is loaded to, even though the offset mentioned in the code is position-independent.

Related questions

0 votes
0 votes
1 answer
1
air1ankit asked Sep 13, 2017
434 views
X= (a+b)*(c+d) variables are in the memory execute on a register -register cpuThen how many 2 address and 3 address instructions requare .. Explain please
0 votes
0 votes
0 answers
3
Ray Tomlinson asked Aug 22, 2023
241 views
is this formula is correct if it is correct then in gate 2006 Question 75 why they not used this formulahttps://gateoverflow.in/43565/gate-cse-2006-question-75
2 votes
2 votes
1 answer
4