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

Discussion

State whether the following is true or false.
A symbol table can be discarded as soon as syntax analysis is complete.

  • A.False only at small scales
  • B.True
  • C.False
  • D.True only at large scales

Answer: C

Correct answer: False

The symbol table is needed long after parsing: semantic analysis checks types against it, intermediate code generation reads storage and scope from it, the code generator allocates from it, and debugging information is produced from it. It is one of the longest-lived structures in the compiler.

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

Post your comment

Please log in or register to post a comment.