closed by
1,082 views
0 votes
0 votes
closed with the note: Solved
which addressing mode is faster and why? indirect or relative?
closed by

1 Answer

1 votes
1 votes

Indirect addressing mode: Two memory references, one for fetching the operand address and other for fetching the operand.


Register Indirect: One access to register, to fetch the operand address and one memory reference to fetch the operand.


Relative addressing: It is a kind of a displacement addressing, program counter value is added to address to get the effective address. So there is one register access, one addition operation and one memory reference.

So I think relative addressing will be faster than Indirect addressing because of the difference in number of memory references.


Ref: Computer Organization and Architecture 8e by William Stallings

Related questions

0 votes
0 votes
0 answers
1
1 votes
1 votes
1 answer
2
1 votes
1 votes
1 answer
3
Jason_Roy asked Feb 4, 2017
740 views
Can anyone solve this??Doubts: Branch penalty should be 2. right?and what is the branch penalty for unconditional branch?