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

Discussion

A T diagram is used to depict

  • A.the flow of tokens from the scanner into the parser
  • B.the tree structure that the syntax analysis phase has produced for it
  • C.the layout of an activation record on the runtime stack
  • D.the source language, target language and implementation language

Answer: D

Correct answer: the source language, target language and implementation language

A T diagram is a notation with three arms: the source language on the left, the target on the right, and the implementation language below. Placing the shapes side by side shows which combinations can be composed.

It is used chiefly to reason about bootstrapping and cross compilation, where three languages are in play at once and it is easy to lose track of which compiler runs where. The other options describe data structures and flows rather than a notation for compilers.

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

Post your comment

Please log in or register to post a comment.