Professional Documents
Culture Documents
Viva Compiler
Viva Compiler
Viva Compiler
MODULE I
MODULE II
1. What is meant by syntax analysis?
2. What is meant by syntax tree? Learn to construct syntax trees
3. What is the role of parser?
4. What is left factored grammar? Learn to perform left factoring
5. Left recursion. Eliminating left recursion
6. Recursive Descent Parser for different grammars
7. Constructing FIRST and FOLLOW
8. Precedence relations matrix
9. What is Handle?
10. Top down and Bottom up parsing
11. LL(k) parser, LR(k) parser meaning and working
12. Left most derivation and right most derivation
13. Ambiguous grammar, parse tree
14. Items, valid items
15. What is left sentential form, right sentential form
16. Shift reduce conflict, reduce reduce conflict
17. Explain CFG, why is it used in syntax analysis phase
18. What is Context Free Language
19. Use of YACC
MODULE III
1. Role of semantic analyser
2. Explain Type Checking
3. Explain SDD, SDT
4. S-attributed grammar, L-attributed grammar, examples
5. SDT for evaluating simple expression
6. Memory allocation strategies
7. Activation record
8. Block structured languages
9. Local and non local variable
10. dynamic and static memory allocation
MODULE IV
1. Need for code optimization
2. Basic blocks
3. Constructing basic blocks from a sequence of statements
4. Flowgraphs
5. Machine Dependent and independent optimization
6. Local and global optimization
7. Various Optimization strategies
8. Need for Intermediate code generation
9. Various intermediate representations
10. Advantage of indirect triples over triples
11. Conversion from infix to postfix
12. Creating DAG and syntax tree
13. Peephole Optimization
MODULE V