edited by
12,511 views

6 Answers

Best answer
32 votes
32 votes

Answer is (B).

Relative mode addressing is most relevant to writing a position-independent code.

Reference: http://en.wikipedia.org/wiki/Addressing_mode#PC-relative

edited by
12 votes
12 votes
actually it is based/base register addreesing mode which is used for writing position independent code ,,,,,,,,basically in the case of intersegment transfer of control.....where as..pc-relative /relative addressing mode is used to write position independent codes in case of intrasegment (with in the segment) transfer of control
5 votes
5 votes
Relative addressing is more relevant to po9sition independent code.the updation of instruction doesnt take much time so its better than indexed addressing mode and its used for inter segment transfer of control
4 votes
4 votes

 The advantage of PC-relative addressing is that the code may be position-independent, i.e. it can be loaded anywhere in memory without the need to adjust any addresses.

Hence, option (B) Position – independent code,  is correct.

Answer:

Related questions

55 votes
55 votes
8 answers
1
Kathleen asked Oct 9, 2014
31,335 views
The average number of key comparisons required for a successful search for sequential search on $n$ items is$\frac{n}{2}$$\frac{n-1}{2}$$\frac{n+1}{2}$None of the above
37 votes
37 votes
2 answers
2
gatecse asked Aug 5, 2014
15,585 views
Register renaming is done in pipelined processors:as an alternative to register allocation at compile timefor efficient access to function parameters and local variablest...
33 votes
33 votes
4 answers
3
Kathleen asked Sep 11, 2014
13,857 views
A clustering index is defined on the fields which are of typenon-key and orderingnon-key and non-orderingkey and orderingkey and non-ordering
23 votes
23 votes
1 answer
4
Kathleen asked Oct 9, 2014
5,623 views
A critical section is a program segmentwhich should run in a certain amount of timewhich avoids deadlockswhere shared resources are accessedwhich must be enclosed by a pa...