Our GCD program did not employ subroutines. Extend the grammar of Figure 15.6 to handle procedures without

Question:

Our GCD program did not employ subroutines. Extend the grammar of Figure 15.6 to handle procedures without parameters (feel free to adopt any reasonable conventions on the structure of the syntax tree). Be sure to generate appropriate prologue and epilogue code for each subroutine, and to save and restore any needed temporary registers.

Figure 15.6:

reg_names : array [0..k-1] of register.name := [

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

Step by Step Answer:

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