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

Discussion

The chief advantage of three address code over a syntax tree for a back end is

  • A.it is already linear and close to the order of execution
  • B.it contains more information about the source program
  • C.it can represent constructs a tree cannot represent at all
  • D.it requires no symbol table to interpret its operands

Answer: A

Instruction selection and scheduling work on a sequence. A tree must be linearised first, which is one of the tasks the intermediate code generator performs. Flattening also fixes the evaluation order, which the tree left open.

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

Post your comment

Please log in or register to post a comment.