GATE Computer ScienceVery hardGATE CSE · NIELIT

A RISC ISA has fixed 4-byte instructions. A conditional branch holds a 16-bit signed offset counted in instructions and the target is (address of the NEXT instruction) + 4 × offset. What is the largest forward distance, in bytes, from the branch instruction's own address to a reachable target?

  1. A. 131068
  2. B. 131072
  3. C. 262144
  4. D. 131076

Correct answer: B. 131072

Max offset 32767 → 4·32767 = 131068 beyond PC+4; relative to the branch itself add 4 = 131072 bytes.

More Computer Organization and Architecture questions

Exams that ask this topic