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

Discussion

The symbol table of a compiler is best described as

  • A.a store of the names in a program together with their attributes
  • B.a listing of the tokens the scanner recognised in the source
  • C.the region of memory in which the compiled program keeps its data
  • D.a table of the productions used by the parser during the parse

Answer: A

Correct answer: a store of the names in a program together with their attributes

The symbol table is the compiler’s record of what every name means: its type, its scope, its storage, its parameters if it is a procedure. Nearly every phase consults it, which is why it is a data structure shared across the whole compiler rather than belonging to any one pass.

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

Post your comment

Please log in or register to post a comment.