Why is PC-relative addressing commonly used for branch instructions?

Correct answer C. It makes code position-independent and needs only a short offset field

Explanation

The target is computed as PC plus a signed displacement, and since most branches jump only a short distance a small field suffices. Because the offset is relative, the code still works when loaded at a different address. Absolute addressing needs a full-width address and ties code to a fixed location. The PC is still updated, just to PC plus the offset.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.