Explain the analysis synthesis model of compilation. List the factors that affect the design of compiler. Also List major functions done by compiler.
[7 marks]What does the linker do? What does the loader do? What does the preprocessor do? Explain their role(s) in compilation process.
[7 marks]Construct a DFA for a given regular expression (010+00)*(10)*
[7 marks]Write a brief note on input buffering techniques to Lexical Analyzer.
[7 marks]Explain Shift-Reduce parsing with suitable example.
[7 marks]Test whether the following grammar is LL (1) or not. Construct predictive parsing table for it. S→1AB|Є A→1AC|0C B→0S C→ 1
[7 marks]What is Intermediate form of the code? What are the advantages of it? What are generally used intermediate forms? Write N-Tuple notation for: (a+b)*(c+d)-(a+b+c)
[7 marks]Construct the canonical parsing table for the following Grammar S’→S S→CC C→cC|d
[7 marks]What is the difference between parse tree and syntax tree? Write appropriate grammar and draw parse as well as syntax tree for a*(a-a^a)
[7 marks]Eliminate left recursion from the following grammar and rewrite the Grammar. S→Aa|b A→Ac | Sd | є
[7 marks]Explain the types of attributed grammar? Which phase of the compilation process does it facilitate? Explain with example.
[7 marks]Explain activation record. How is task divided between calling & called program for stack updating?
[7 marks]Explain: Error Recovery Strategies in Compiler in brief.
[7 marks]Explain various code optimization techniques.
[7 marks]Explain: Symbol Table Management. How symbol table differs from other data structures?
[7 marks]Discuss generic issues in the design of code generation.
[7 marks]Compare Static and Dynamic memory allocation.
[7 marks]