Site icon i2tutorials

Compiler Design-Symbol Table

Symbol Table

 

The symbol table is a data structure that is present in the compiler in order to keep a track of the semantic variables. It stores the information that is required in the program like the instances of variables, binding information about information, scope of variables, function names, classes etc.

 

The lexical and syntax analysis phase holds the symbol table. The analysis phase of the compiler collects the information, and the synthesis phase generates the code.

 

It is also used to increase the time efficiency of the compiler. The symbol table is used in almost all the phases of the compiler.

 

It is used in each phase for different purposes

 

 

Reference Link

Symbol Table

Exit mobile version