Machine-translated by Google. Questions are authored in English.
Top

Discussion

Reusing temporary names where their lifetimes do not overlap

  • A.reduces the number of distinct names the back end must handle
  • B.changes the meaning of the program being compiled
  • C.is impossible once the intermediate code has been generated
  • D.requires the program to be converted to single assignment form

Answer: A

Correct answer: reduces the number of distinct names the back end must handle

Expression translation generates a great many temporaries, most of them short-lived, and reusing a name once its value is dead cuts the number the register allocator must consider. The program’s meaning is unaffected, since the values never coexist.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.