What is Preprocessor?
Compiler Design
22 questions
Define Regular Expression.
What is Ambiguous Grammar?
Define Handle.
What is Semantic Analysis?
Define Activation Record.
What is Intermediate Code?
Define DAG (Directed Acyclic Graph).
What is Peephole Optimization?
Define Register Allocation.
Explain the concept of Finite Automata and its role in lexical analysis.
Describe the construction of Predictive Parsing Table.
Explain the concept of operator precedence parsing.
Discuss the runtime environment in compilers.
Explain the concept of Intermediate Code Generation with examples (TAC, Quadruples, Triples).
Describe the concept of Data Flow Analysis.
Explain the different types of code generation techniques.
(a) Explain the construction of NFA from Regular Expression. (b) Describe the conversion of NFA to DFA with an example.
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.
Explain the LALR parsing in detail. Construct LALR parsing table for a given grammar and demonstrate parsing of an input string.
(a) Explain Type Checking. (b) Discuss Backpatching with an example. (c) Explain how boolean expressions are translated.
Explain Code Generation in detail. Discuss register allocation and assignment, and the DAG representation of basic blocks.