IMP Differences & Definition:: 5) Compare: S Vs L Attributes. (M-3)
IMP Differences & Definition:: 5) Compare: S Vs L Attributes. (M-3)
1) What is compiler? What is front end & back end of compiler? (M- 3)
2) Explain input, output & action performed by each phases of compiler with example? (M- 7)
5) Explain the language dependent & machine independent phases of compiler. Also List major functions done by
compiler. (M- 7)
6) Define: Compiler, Interpreter. (M- 3)
2) Lexical Analysis:
2) ‘What is lexical analysis? Which are the tasks performed by lexical analyzer. (M- 3)
3) Construct DFA without constructing NFA for R.E.: (a/b)*abb*. (M- 7)
4) Prepared Regulator Expressions related Sums. (M- 3/4)
5) Define lexemes, patterns and tokens. (M- 3)
2) Construct SLR parsing table for grammar: s > (L) |a,L > L,S | S. (M- 7)
3) Give rule to remove left recursive grammar. Eliminate left recursion of grammar: S Aa | b, A> Ac | Sd | f(M- 4)
4) What is left factoring in CFG? Perform left factoring: S=> iEtS | iEtSaS | a, E b. (M- 4)
5) Give the translation scheme that convert infix to postfix notation. (M- 3)
7 What are conflicts in LR Parser? What are their types? Explain with an example. (M- 7)
12) Define the terms & give example of it. 1) Augmented Grammar, 2) LR(0) Item, 3) LR(1) Item. (M- 4)
2) Explain the following with example 1) Lexical phase error 2) Syntactic phase error. (M- 4)
3) Discuss the functions of error handler. (M- 4)
5) Intermediate Code Generation:
1) Translate the expression —(atb)*(c+d)*(atb*c) into Quadruples, Triples, Indirect Triples. (M- 7)
2) Explain the following parameter passing methods. 1. Call-by-value 2. Call-by-reference 3. Copy-Restore 4.
Call-by-Name. (M- 4)
6) Run Time Environments:
5) What is global optimization? Name the 2 types of analysis performed for global optimization. (M- 3)
6) ‘What is peephole optimization? Explain with example. (M- 7)
7 What is DAG? What are its advantages in context of optimization? How does it help in eliminating common
sub expression? (M- 7)
8) Instruction Level Parallelism: