Which technique removes write-after-read (WAR) and write-after-write (WAW) hazards in an out-of-order processor?
Correct answer A. Register renaming
Explanation
WAR and WAW are name dependences: the instructions reuse the same register name but do not pass data between them. Mapping each new destination to a fresh physical register removes the conflict, letting the instructions run in any order. Forwarding helps only true (RAW) dependences, branch prediction tackles control hazards, and extra ports fix structural hazards.
Answer checked How we write and check questions
Discussion