WWW Manaresults Co in
WWW Manaresults Co in
R13
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
B. Tech III Year I Semester Examinations, November - 2015
COMPILER DESIGN
(Computer Science and Engineering)
Time: 3 hours Max. Marks: 75
2. What are the various phases of the compiler? Explain each phase in detail. [10]
OR
3. Construct the predictive parser for the following grammar: [10]
S->(L)/a
L->L,S/S
www.ManaResults.co.in
6. Generate intermediate code for the following code segment along with the required
syntax directed translation scheme:
if(a>b)
x=a+b
else
x=a-b
Where a and x are of real and b of int type data. [10]
OR
7. Give syntax directed translation scheme for simple desk circulator. [10]
10. Explain in detail about machine dependent code optimization techniques. [10]
OR
11. Give an example to show how DAG is used for register allocation. [10]
–--ooOoo---
www.ManaResults.co.in