0
1.4kviews
Output for every phase of compiler and also three address code

a) For given code generate output for every phase of compiler.

{
 Int i = 1;
 Int a[10];
While (i <= 10) {
   a[i] = 0;
   i = i + 1;
 }

}

b) Consider a program segment

sum: = 0;
for (i = 1; i <= 20; i++)
sum: = sum + a[i] + b[i];

And generate three address code for it and create basic block for that three address code. Consider that there are 4-byte per word?

Please log in to add an answer.