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

Discussion

The place attribute of a nonterminal in expression translation names

  • A.the temporary or variable holding the value of that subexpression
  • B.the position of that subexpression within the source program text
  • C.the machine register that the value will eventually occupy
  • D.the line number at which the subexpression appears

Answer: A

Each rule emits an instruction computing into a new place and reports that place upward. Register assignment happens much later, in the code generator. The name is all the translation needs to refer to the value again.

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

Post your comment

Please log in or register to post a comment.