Podcast
Questions and Answers
Which phase of the compiler is responsible for analyzing the syntax of the source program?
Which phase of the compiler is responsible for analyzing the syntax of the source program?
- Semantic analysis
- Lexical analysis (scanner)
- Parsing (syntax analysis) (correct)
- Translation Design
What is the main purpose of code generation phase in the compiler?
What is the main purpose of code generation phase in the compiler?
- To generate the target code (correct)
- To analyze the lexical structure of the source program
- To optimize the generated code
- To translate the source program to intermediate mode
Which book is NOT mentioned as a source for compiler design?
Which book is NOT mentioned as a source for compiler design?
- J.P. Tremblay, P.G Sorensen, “The Theory & Practical of computer writing”, Megraw Hill, 1985 (correct)
- V. Aho. R, Sethi , J.D. Ulman ,“Compiler Principles, Techniques & Tools“, Addison Wesley , 1986
- Kenneth C.Louden 2005-2006 “Compiler Construction Principles & Practice“
- R. Wilhelem. “Compiler Design“ Assison _ Wesly , 1995
What is the purpose of lexical analysis phase in the compiler?
What is the purpose of lexical analysis phase in the compiler?
Which phase of the compiler is responsible for optimizing the generated code?
Which phase of the compiler is responsible for optimizing the generated code?