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

Discussion

Consider the following statements about three address code.
1. Each instruction names at most three addresses.
2. Temporaries are introduced for intermediate results.
3. The form is tied to a particular target instruction set.

  • A.3 only
  • B.1 only
  • C.All of them
  • D.1 and 2 only

Answer: D

Correct answer: 1 and 2 only

Statements 1 and 2 give the form correctly: at most three addresses per instruction, with temporaries introduced for intermediate results. Statement 3 denies the whole purpose of the representation - it is deliberately machine independent, which is what allows one optimiser and many back ends.

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

Post your comment

Please log in or register to post a comment.