Problem

You are writing a new 3D game that you hope will earn you fame and fortune.You are curre...

You are writing a new 3D game that you hope will earn you fame and fortune.You are currently working on a function to blank the screen buffer before drawing the next frame. The screen you are working with is a 640 × 480 array of pixels. The machine you are working on has a 64 KB direct-mapped cache with 4-byte lines. The C structures you are using are as follows:

Assume the following:

• . sizeof(char) == 1 and sizeof(int) == 4.

• . buffer begins at memory address 0.

• . The cache is initially empty.

• . The only memory accesses are to the entries of the array buffer. Variables i, j, cptr, and iptr are stored in registers.

What percentage of writes in the following code will miss in the cache?

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