What is Compiler? Explain working of all the phases of compiler with a sample string as input.
[7 marks]Explain peephole code optimization in detail with examples.
[7 marks]Explain Input Buffering in detail with example. Also explain importance of sentinel character.
[7 marks]Draw DFA for given expression- aa*ab*c#
[7 marks]Prove give regular expressions are equal by generating their optimized DFAs. 1) (a | b)* 2) (a* | b*)*
[7 marks]Explain difference between ambiguous and unambiguous grammar with example in detail. Write unambiguous grammar for desk calculator.
[7 marks]Draw LL(1) parsing table for the following grammar. S iEtSS’ | a S’ eS | € E b
[7 marks]Explain rules to eliminate left recursion with example. Also explain left factoring in detail with example.
[7 marks]Design predictive parsing table for following grammar. E E+T E T T T*F T F F id
[7 marks]Check whether given grammar is Valid LR(0) grammar or not. E E+T E T T T*F T F F id
[7 marks]Write SDD for desk calculator grammar.
[7 marks]Write Translation scheme for desk calculator grammar.
[7 marks]Check whether given grammar is valid LALR grammar or not. S L = R | R L * R | id R L
[7 marks]Explain error recovery techniques in detail with examples.
[7 marks]Explain following in detail. 1) Quadruple 2) Triple 3) Indirect Triple
[7 marks]Explain Code Generation algorithm in detail.
[7 marks]Explain various storage allocation techniques in detail.
[7 marks]