What is the difference between compiler and interpreter?
[3 marks]Explain analysis phase of the source program with example.
[4 marks]Write an algorithm for Thompson’s construction method. Apply the algorithm to construct NFA for following regular expression. (a | b)*abb.
[7 marks]What is a pass in a compiler? What is the effect of reducing the number of passes?
[3 marks]Explain error recovery strategies used by parser.
[4 marks]What is operator grammar? Generate precedence function table for following grammar. E -> EAE | id A -> + | *
[7 marks]Define handle and handle pruning. Explain the stack implementation of shift reduce parser with the help of example.
[7 marks]Give the translation scheme that converts infix to postfix notation. Generate the annotated parse tree for input string 3-5+4.
[3 marks]Explain buffer pairs and sentinels.
[4 marks]Check given grammar is LL(1) but not SLR(1). S -> AaAb | BbBa A -> € B -> €
[7 marks]Write a rule of Left factoring a grammar and give example.
[3 marks]Explain role of lexical analyzer.
[4 marks]Define syntax tree. What is s-attributed definition? Explain construction of syntax tree for the expression a-4+c using SDD.
[7 marks]Translate the arithmetic expression a*-(b+c) into 1. Syntax tree 2. Postfix notation 3. Three address code
[3 marks]Write Syntax Directed Definition to produce three address code for the expression containing the operators := , + , - (unary minus), ( ) and id.
[4 marks]What is activation record? Explain stack allocation of activation records using example.
[7 marks]What is activation tree?
[3 marks]Explain parameter passing techniques for procedure.
[4 marks]What is importance of intermediate code? Discuss various representations of three address code using the given expression. a = b * -c + b * -c .1
[7 marks]Explain three loop optimization techniques with example.
[3 marks]What is code optimization? Explain data flow equation.
[4 marks]Describe code generator design issues.
[7 marks]Define following : DAG, Basic Blocks, Flow graph
[3 marks]Explain peephole optimization.
[4 marks]Explain function preserving transformations with example.
[7 marks]