RTUComputer ScienceYr 2023 · Sem 5

Compiler Design

22 questions

Q24 marks

Describe the role of Lexical Analyzer in a compiler.

Show Answer
Q34 marks

Explain the concept of FIRST and FOLLOW sets with an example.

Show Answer
Q64 marks

Describe the various storage allocation strategies.

Show Answer
Q74 marks

Explain the basic blocks and flow graphs in code optimization.

Show Answer
Q110 marks

(a) Explain the architecture of a compiler in detail. (b) Differentiate between Compiler, Interpreter, and Assembler.

Show Answer
Q210 marks

Explain the concept of Top-Down Parsing in detail. Discuss Recursive Descent Parsing and LL(1) parsing with suitable examples.

Show Answer
Q310 marks

(a) Explain the concept of Bottom-Up Parsing. (b) Discuss LR parsing techniques (SLR, CLR, LALR) with examples.

Show Answer
Q410 marks

Explain Syntax-Directed Definitions (SDD) and Syntax-Directed Translation (SDT). Discuss the translation of arithmetic expressions with examples.

Show Answer
Q510 marks

Explain Code Optimization techniques in detail. Discuss local optimizations and loop optimizations with examples.

Show Answer