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?
- A. 131068
- B. 131072
- C. 262144
- D. 131076
Correct answer: B. 131072
Max offset 32767 → 4·32767 = 131068 beyond PC+4; relative to the branch itself add 4 = 131072 bytes.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- How many distinct single-precision IEEE 754 values x satisfy 1 ≤ x < 1024?
- A disk spins at 7200 rpm, has an 8 ms average seek and a 100 MB/s media rate (1 KB = 1000 B, 1 MB = 10⁶ B). Request X reads one contiguous…
- A memory has 8 low-order interleaved banks (bank = word address mod 8). An access started in cycle t keeps its bank busy in cycles t … t+5…
- A classic 5-stage pipeline (IF, ID, EX, MEM, WB) has no forwarding; the register file is written in the first half of a cycle and read in…
- A pipeline has a two-slot delayed branch: the two instructions after every branch always execute. The compiler fills the first slot with a…
- A cache miss fetches an 8-word block. Sending the address takes 1 cycle, a memory access takes 15 cycles and putting one word on the…