SEMANTIC ANALYSIS
SYMBOL TABLES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which phase of compiler does NOT use symbol table?
|
Code generation
|
|
Syntax Analysis
|
|
Lexical Analysis
|
|
None of the options
|
Explanation:
Detailed explanation-1: -Symbol table is used by both the analysis and the synthesis parts of a compiler. A symbol table may serve the following purposes depending upon the language in hand: To store the names of all entities in a structured form at one place. To verify if a variable has been declared.
Detailed explanation-2: -The symbol table is created and populated during the compilation phase, as the compiler scans the program for identifiers and their declarations.
There is 1 question to complete.