Question: QUESTION 7 [ Total marks: 1 0 ] Intermediate Code 7 ( a ) [ 6 Marks ] Convert the following source code into 3

QUESTION 7[Total marks: 10] Intermediate Code 7(a)[6 Marks] Convert the following source code into 3-address intermediate code using the syntaxdirected approach given in the appendix. Assume that all variables are stored in 4 bytes. min = a [0] ; i =1; w h i l e ( i <10){ i f ( a [ i ]< min ){ min = a [ i ] ; } i = i +1; }7(b)[4 Marks] Generate a Control Flow Graph from the intermediate code generated in part (a) of this question. Clearly describe the rules used to generate the Control Flow Graph.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!