Hcurs: E+E+T/T
Hcurs: E+E+T/T
Hcurs: E+E+T/T
136 S L4
FOUR YEAR B.TECH. DEGREE EXAMINATION _ APRIL, z}rc.
SIXTH SEMESTER EXAMINATION
COMPUTER SCIENCE AND ENGINEERiNG
COMPILER DESIGN (CD)
(scHEME - 2013)
Question No. 1 carries 10 rnarks and remaining questions carry 15 marks each.
D. (a) analyser'
Explain the language for specifying lexicai (10)
E+E+T/T
T-+T*F/F
I'+ (E)/id
(b) Compare and contrast SLR, CLR and I"ALR parsers. (5)
Turn Over
5. (a) Explain the specification of simple type checker. (5)
(b) What are the different strategies for storage allocation? Expiain. (10)
6. (a) Explain the terms local optimization and loop optirnization. (8)
(b) Generate the three address code for the Boolean expression o < b or c < d,
ande<f . (7)
, 136 s 14