1.

Semantic Analyser is used for?(a) Generating Object code(b) Maintaining symbol table(c) Generating Object code & Maintaining symbol table(d) None of the mentionedI had been asked this question in my homework.This intriguing question originated from Syntax Analyser topic in section Contextfree Grammar and Syntax Analysis of Compiler

Answer»

Right answer is (C) GENERATING Object code & Maintaining symbol table

For explanation: Maintaining the Symbol Table for each block.

Source Program for SEMANTIC Errors.

Collects TYPE Information for Code Generation.

Reporting compile-time errors in the code Generating the object code (e.g., assembler or INTERMEDIATE code).



Discussion

No Comment Found

Related InterviewSolutions