Professional Documents
Culture Documents
Course: B.Tech
Branch: IT
Subject Name: Compiler Design
(v)
(vi)
11. Compare between the different methods for implementation of the three address codes.
12. Translate the following into three address code
A[I, J] = B[I, J] + C[A[K, L]] + D[I+J]
Assume bpw = 4.
13. What are the various storage management techniques available? What are their importance in
compiler design.
14. What are the various types of errors that may appear in compilation process? Explain the
function of Error Handling phase of a compiler.
15. Discuss the following parameter passing techniques with suitable example.
(a) Call by value
(b) Call by reference
(c) Call by name
16. For the construct a > b or c > d and e > f
(i)
The annotated parse tree
(ii)
Three address code
(iii) Stack implementation
17. Construct three address code A = -B * (C + D). also generate its quadruple representation
18. In C the for statement has the following form
For (e1; e2; e3) stmt
Construct a SDTS to translate into three address code
19. Discuss Error Detection and Recovery in
(i)
LR parsers
(ii)
LL(1) Parsers
(iii) OP Parsers
20. Discuss different methods of error detection (e.g. panic mode etc.)
21. Discuss the data structures used for symbol table management.
22. Explain the procedure for dynamic storage allocation.