CD Important Questions + Numerical (Edushine)
CD Important Questions + Numerical (Edushine)
1. What are basic blocks? Write the algorithm for partitioning into Blocks.
2. Explain in detail about loop optimization.
3. Construct the flow graph for the following code segment:
fact(n)
{
int f=1;
for(i=2; i≤n; i++)
f=f*i;
return f;
}
5. What are the various issues in design of code generator & code loop optimization?