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

Discussion

A three address instruction of the form x = y + z is best described as

  • A.a copy instruction moving a value from one place to another
  • B.a conditional jump taken when the sum is non zero
  • C.a procedure call passing two arguments to a routine
  • D.a binary assignment naming a destination and two operands

Answer: D

Correct answer: a binary assignment naming a destination and two operands

The form is called three address because it names three: the result and the two operands. Every complex expression is broken down into a sequence of such instructions with temporaries linking them, which is what makes the representation simple enough to optimise and to translate.

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

Post your comment

Please log in or register to post a comment.