COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

COMPILATION PROCESS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Symbol table is created in:
A
Lexical Analysis
B
Syntax Analysis
C
Code Generation
D
Code Optimisation
Explanation: 

Detailed explanation-1: -Symbol table is an important data structure created and maintained by compilers in order to store information about the occurrence of various entities such as variable names, function names, objects, classes, interfaces, etc. Symbol table is used by both the analysis and the synthesis parts of a compiler.

Detailed explanation-2: -The symbol table is used to store essential information about every symbol contained within the program. Virtually every phase of the compiler will use the symbol table: The initialization phase will place keywords, operators, and standard identifiers in it.

Detailed explanation-3: -Symbol table is a data structure created by the compiler to keep track of the semantics of variables. It stores information about instances of various entities such as variables, function names, classes, information about the scope and binding information of names, etc.

Detailed explanation-4: -In computer science, a symbol table is a data structure used by a language translator such as a compiler or interpreter, where each identifier (or symbol), constant, procedure and function in a program’s source code is associated with information relating to its declaration or appearance in the source.

There is 1 question to complete.