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

Discussion

The symbol table is

  • A.a listing of the errors found while compiling the source program
  • B.a data structure holding names and their attributes across all phases
  • C.a temporary buffer used only by the lexical analyser during scanning
  • D.the region of memory in which the target program stores its variables

Answer: B

Every phase reads or writes the symbol table. The scanner enters identifiers, the analyser records types and scopes, and the code generator consults it for storage allocation, so it spans the whole compiler rather than belonging to one phase.

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

Post your comment

Please log in or register to post a comment.