GATE / CS ARCHIVE

GATE CSE 2012 / QUESTION 20

Purpose of register renaming

Computer Organization & Architecture · Pipelining & Hazards · Full GATE CSE 2012 paper

GATE 2012, Q20 1 mark · MCQ
Report issue

Pipelining & Hazards

Question 20, GATE 2012: Register renaming is done in pipelined processors
        (A) as an alternative to register allocation at compile time
        (B) for efficient access to function parameters and local variables
        (C) to handle certain kinds of hazards
        (D) as part of address translation
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Renaming assigns different physical registers to distinct logical-register definitions. This removes false dependencies due to reusing a register name, specifically WAR and WAW hazards, allowing more overlapping execution. It cannot remove a genuine RAW data dependency. Thus it handles certain pipeline hazards, C.

Check: For example, an older instruction reading logical R1 and a newer instruction writing logical R1 need not share a physical register. Giving the newer result a new physical destination avoids a write-after-read name hazard while preserving the old value for its reader.

Original paper, page 4 · Answer key