Define Compiler.
Compiler Design
22 questions
What is a Token?
Define Lexical Analysis.
What is Context-Free Grammar?
Define Parse Tree.
What is Left Recursion?
Define Syntax-Directed Translation.
What is Three-Address Code?
Define Symbol Table.
What is Code Optimization?
Explain the phases of a compiler.
Describe the role of Lexical Analyzer in a compiler.
Explain the concept of FIRST and FOLLOW sets with an example.
Discuss the LL(1) parsing technique.
Explain the concept of Shift-Reduce parsing.
Describe the various storage allocation strategies.
Explain the basic blocks and flow graphs in code optimization.
(a) Explain the architecture of a compiler in detail. (b) Differentiate between Compiler, Interpreter, and Assembler.
Explain the concept of Top-Down Parsing in detail. Discuss Recursive Descent Parsing and LL(1) parsing with suitable examples.
(a) Explain the concept of Bottom-Up Parsing. (b) Discuss LR parsing techniques (SLR, CLR, LALR) with examples.
Explain Syntax-Directed Definitions (SDD) and Syntax-Directed Translation (SDT). Discuss the translation of arithmetic expressions with examples.
Explain Code Optimization techniques in detail. Discuss local optimizations and loop optimizations with examples.