Suppose that k (the number of temporary registers) in Figure 15.6 is 4 (this is an artificially

Question:

Suppose that k (the number of temporary registers) in Figure 15.6 is 4 (this is an artificially small number for modern machines). Give an example of an expression that will lead to register spilling under our naive register allocation algorithm.

program (7) call for (8) 0.0 (4) null (10) 1 (7) call null (9) call null (6) Index Symbol Туре Scope (8) 1 void type (5) null 2 int (8) float type type func: (1) (2) func: (1) – (3) func: (3) – (1) 3 real (8) (9) 4 getint

Figure 15.6:

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

Step by Step Answer:

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