Professional Documents
Culture Documents
important question -Isem II (2)
important question -Isem II (2)
19.Give the S-attributed SDD of a simple desk calculator and show annotated parse tree
for the expression (3+4)*(5+6).
22.Construct the DAG and three address code for the expression a+a*(b-c)+(b-c)*d.
26.Explain the following machine independent optimization techniques. a) Common sub expr
elimination b) Copy propagation, constant folding.
30.Explain how to generate three address codes with syntax directed definitions
with an example.
33.Construct the DAG and three address code for the expression a+a*(b-c)+(b-c)*d.
38.Construct basic blocks, data flow graph and identify loop invariant statements
for the following: for (i=1 to n) { j=1; while (j<=n) { A=B*C/D; j=j+1; } }