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

Discussion

Translating an expression into three address code by syntax directed translation typically gives each nonterminal

  • A.a place attribute naming the temporary that holds its value
  • B.a type attribute and nothing else besides that
  • C.an inherited attribute naming the target register to use
  • D.no attribute at all

Answer: A

The place attribute names where the value lives, usually a compiler generated temporary. The code itself is either another attribute or is emitted directly as a side effect. Which choice is made affects whether fragments can be reordered afterwards.

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

Post your comment

Please log in or register to post a comment.