COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

KEY COMPONENTS OF A COMPILER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Information about source program is stored in
A
operating system
B
symbol table
C
interpreter
D
database
Explanation: 

Detailed explanation-1: -Symbol table is an important data structure used in a compiler. Symbol table is used to store the information about the occurrence of various entities such as objects, classes, variable name, interface, function name etc. it is used by both the analysis and synthesis phases.

Detailed explanation-2: -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.

Detailed explanation-3: -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-4: -A symbol table is a data structure maintained and constructed by the Python compiler that contains all of the essential information about each identifier found in the source code of the program. This data pertains to an identifier’s type, value, scope level, and its position (also called symbol).

There is 1 question to complete.