RTUComputer ScienceYr 2024 · Sem 5

Compiler Design

22 questions

Q14 marks

Explain the concept of Finite Automata and its role in lexical analysis.

Show Answer
Q24 marks

Describe the construction of Predictive Parsing Table.

Show Answer
Q34 marks

Explain the concept of operator precedence parsing.

Show Answer
Q54 marks

Explain the concept of Intermediate Code Generation with examples (TAC, Quadruples, Triples).

Show Answer
Q74 marks

Explain the different types of code generation techniques.

Show Answer
Q110 marks

(a) Explain the construction of NFA from Regular Expression. (b) Describe the conversion of NFA to DFA with an example.

Show Answer
Q210 marks

Explain LL(1) parsing in detail. Construct LL(1) parse table for the following grammar: E→E+T|T, T→T*F|F, F→(E)|id. Eliminate left recursion and left factoring.

Show Answer
Q310 marks

Explain the LALR parsing in detail. Construct LALR parsing table for a given grammar and demonstrate parsing of an input string.

Show Answer
Q410 marks

(a) Explain Type Checking. (b) Discuss Backpatching with an example. (c) Explain how boolean expressions are translated.

Show Answer
Q510 marks

Explain Code Generation in detail. Discuss register allocation and assignment, and the DAG representation of basic blocks.

Show Answer