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

Discussion

The following are all forms of three address instruction EXCEPT

  • A.a nested expression of the form x = (a + b) * (c + d)
  • B.a conditional jump of the form if x relop y goto L
  • C.an indexed assignment of the form x = y[i]
  • D.a copy of the form x = y

Answer: A

The first three each name at most three addresses. A nested expression names more, so it must be broken into several instructions with temporaries holding the intermediate results. The flattening is exactly what the intermediate code generator does.

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

Post your comment

Please log in or register to post a comment.