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

Discussion

Translating a nested expression requires temporaries because

  • A.the target machine has no instructions for nested expressions
  • B.the parser cannot recognise nesting deeper than three levels
  • C.the symbol table has no room for the intermediate values
  • D.a three address instruction cannot name a subexpression directly

Answer: D

Each instruction names addresses, not expressions, so every intermediate value needs somewhere to live. The number of temporaries equals the number of operators under the simple scheme. Reusing them where lifetimes do not overlap reduces that count considerably.

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

Post your comment

Please log in or register to post a comment.