Problem

This is another problem that tests your ability to analyze the cache behavior of C code....

This is another problem that tests your ability to analyze the cache behavior of C code. Assume we execute the three summation functions in Figure 6.47 under the following conditions:

• . sizeof(int) == 4.

• . The machine has a 4KB direct-mapped cache with a 16-byte block size.

• . Within the two loops, the code uses memory accesses only for the array data. The loop indices and the value sum are held in registers.

• . Array a is stored starting at memory address 0x08000000.

Fill in the table for the approximate cache miss rate for the two cases N = 64 and N = 60.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search