Which of these is not true about Symbol Table?a)All the labels of the ...
Explanation: The Symbol table does not ever perform the processing of the assembler derivative.
View all questions of this test
Which of these is not true about Symbol Table?a)All the labels of the ...
Introduction:
A symbol table is a data structure used by an assembler, linker, or compiler to keep track of the symbolic names or labels used in a program. It associates each symbol with information such as its address or value. In this question, we are asked to identify the statement that is not true about the symbol table.
Explanation:
a) All the labels of the instructions are symbols:
This statement is true. In assembly language programming, labels are used to mark specific locations in the program. These labels are symbols that are stored in the symbol table along with their corresponding addresses.
b) Table has an entry for symbol name, address, value:
This statement is true. The symbol table contains entries for each symbol used in the program. Each entry includes information such as the symbol's name, address, and value. This information is used by the assembler, linker, or compiler for various purposes.
c) Perform the processing of the assembler directives:
This statement is not true. Assembler directives, such as EQU, ORG, and END, are instructions for the assembler itself and not for the symbol table. The symbol table is used by the assembler to resolve symbols and generate the final machine code or object code.
d) Created during pass 1:
This statement is true. The symbol table is typically created during the first pass of the assembler. During the first pass, the assembler reads the source code, identifies symbols, and adds them to the symbol table along with their addresses and values.
Conclusion:
In conclusion, the statement that is not true about the symbol table is option 'c' - "Perform the processing of the assembler directives". Assembler directives are instructions for the assembler itself, and the symbol table is used by the assembler to resolve symbols and generate the final machine code or object code.
To make sure you are not studying endlessly, EduRev has designed Computer Science Engineering (CSE) study material, with Structured Courses, Videos, & Test Series. Plus get personalized analysis, doubt solving and improvement plans to achieve a great score in Computer Science Engineering (CSE).