Define cross compiler, token and handle.
[3 marks]Draw transition diagram for relational operators.
[4 marks]Explain phases of compiler with example.
[7 marks]Explain panic mode recovery strategy.
[3 marks]Write a short note on input buffering method.
[4 marks]Explain subset construction method with example.
[7 marks]Draw DFA for the following regular expression using firstpos( ), lastpos ( ) and followpos ( ) functions. ( a | b) * a
[7 marks]What is operator grammar? Check the following grammar is operator or not. Justify your answer. E EOE E id O * | + | -
[3 marks]Check the following grammar is left recursive or not. Justify your answer. If Left recursive then make grammar as non-left recursive. S ( L ) | a L L , S | S
[4 marks]Construct CLR parsing table for the following grammar. S CC C cC | d
[7 marks]Consider the following grammar and construct the corresponding left most and right most derivations for the sentence abab. SaSbS | bSaS | ε
[3 marks]Find out FIRST and FOLLOW for the following grammar. S 1AB | ε A 1AC | 0C B 0S C 1
[4 marks]Explain SLR parsing method with example.
[7 marks]What is symbol table? For what purpose , compiler uses symbol table?
[3 marks]Write a short note on activation record.
[4 marks]Write syntax directed definition for simple desk calculator. Using this definition, draw annotated parse tree for 3*5+4 n. OR1
[7 marks]Explain algebraic simplifications and flow of control optimization characteristics of peephole optimization.
[3 marks]Explain Quadruples and Triples form of three address code with example.
[4 marks]What is inherited attribute? Write syntax directed definition with inherited attributes for type declaration for list of identifiers.
[7 marks]Draw a DAG for expression: a + a * (b – c) + (b – c) * d.
[3 marks]Compare: Static v/s Dynamic Memory Allocation.
[4 marks]Explain any three code optimization methods.
[7 marks]Write difference(s) between stack and heap memory allocation.
[3 marks]Explain any two methods of parameter passing.
[4 marks]Explain various issues in design of code generator.
[7 marks]