COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Name and information
|
|
Name and function
|
|
Name and data
|
|
Name and procedures
|
Detailed explanation-1: -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-2: -The assembler creates the symbol table section for the object file. It makes an entry in the symbol table for each symbol that is defined or referenced in the input file and is needed during linking. The symbol table is then used by the link editor during relocation.
Detailed explanation-3: -Representing scope information is a concept in which the scope of each variable name is preserved in the symbol table so that we can use the same name in different blocks and different locations. A lifetime of a variable in a particular block.