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

Discussion

A temporary name in three address code is

  • A.a user declared variable that lives only briefly
  • B.a machine register allocated during code generation
  • C.a label marking the destination of a jump instruction
  • D.a compiler generated name holding an intermediate result

Answer: D

Correct answer: a compiler generated name holding an intermediate result

Temporaries are invented by the compiler to hold the partial results of an expression, and they appear nowhere in the source. They are not registers - allocating registers to them is a later and separate problem, and there are usually far more temporaries than the machine has registers.

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

Post your comment

Please log in or register to post a comment.