List the cousins of compiler and explain the role of any one of them.
[3 marks]Write a brief note on input buffering techniques.
[4 marks]Explain front end and back end of compiler in detail.
[7 marks]Define the following terms and give suitable example for it. 1) Handle 2) Handle pruning 3) Left Factoring
[3 marks]Explain all error recovery strategies used by parser.
[4 marks]Construct LL(1) parsing table for the following Grammar: E -> E+T | T T -> T*F | F F -> (E) | a
[7 marks]Construct NFA for following regular expression using Thompson’s notation and then convert it into DFA. (a/b)*abb#
[7 marks]Define the following terms and give suitable example for it. 1) Augmented Grammar 2) LR(0) Item 3) LR(1) Item
[3 marks]Differentiate Top Down Parsing and Bottom up parsing
[4 marks]Construct SLR parsing table for the following grammar : S ->(L)|a L->L,S|S
[7 marks]Give the difference between SLR and CLR Parser.
[3 marks]List the different conflicts that occur in Bottom up parsing and give examples for that.
[4 marks]Implement the following grammar using Recursive Descent Parser. S -> Aa | bAc | bBa A -> d B -> d
[7 marks]What is Ambiguous Grammar? Describe with example.
[3 marks]Give the difference between synthesized attributes and inherited attributes
[4 marks]Construct CLR parsing table for the following grammar : S ->AA A->aA|b
[7 marks]List the different issues in code generation phase and describe any two issues.
[3 marks]Explain parameter passing techniques for procedure.
[4 marks]Explain Quadruple, triple and indirect triple with suitable example.1
[7 marks]Draw syntax tree and DAG for the statement x=(a+b)*(a+b+c)*(a+b+c+d)
[3 marks]Explain dynamic memory allocation strategy.
[4 marks]What is an activation record? Explain how they are used to access local and global variables.
[7 marks]Write a note on stack allocation strategy.
[3 marks]Give the translation scheme that converts infix to postfix expression for the following grammar and also generate the annotated parse tree for input string “id+id*id” E -> E+T | T T -> T*F | F F -> id
[4 marks]Discuss various code optimization techniques with examples.
[7 marks]