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

Discussion

A syntax tree used as an intermediate representation differs from three address code in that it

  • A.contains strictly fewer nodes than the equivalent code
  • B.is unable to represent an expression with more than two operands
  • C.records the machine registers assigned to each subexpression
  • D.retains the nesting structure rather than flattening it

Answer: D

The tree is closer to the source and easier to transform structurally. Three address code is closer to the machine and easier to schedule and allocate registers for. Most compilers keep both forms and lower from one to the other.

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

Post your comment

Please log in or register to post a comment.