Modify the attribute grammar of Figure 15.6 in such a way that it will generate the control

Question:

Modify the attribute grammar of Figure 15.6 in such a way that it will generate the control flow graph of Figure 15.3 instead of the linear assembly code of Figure 15.7.

Figure 15.3:

call getint i:= rv call getint j:= rv Start v13 := i v1 := i v2:= j F a1 := v13 v3 := v1 + v2 call putint test v3 T End v4 := i v5:= j v6 := v4 > v5 test v6 F v7:=i v10 := j v11:=

Figure 15.6:

Figure 15.7:

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: