1.

Generation of intermediate code based on a abstract machine model is useful in compilers because ____________(a) Implementation of lexical analysis and syntax analysis is made easier(b) Writing for intermediate code generation(c) Portability of the front end of the compiler(d) None of the mentionedThis question was posed to me during a job interview.Origin of the question is Implementation of the Translation Specified by Syntax-Directed Definitions in division Syntax Directed Definition and Translations of Compiler

Answer»

Right option is (a) Implementation of lexical ANALYSIS and syntax analysis is made easier

For EXPLANATION I would say: Intermediate code GENERATOR receives input from its predecessor phase, SEMANTIC analyzer, in the form of an annotated syntax tree.



Discussion

No Comment Found

Related InterviewSolutions