Question: or - 4 4 8 0 C ar 6 o 4 Problem 2 . ( 1 2 points ) Basic cache Consider the following C

or-4480C ar6o 4
Problem 2.(12 points) Basic cache
Consider the following C code.
Assume the above code is executed on a machine with the following conditions:
sizeof(int)=4.
The array src starts at address 0 and the array dst starts at address 040(i.e., decimal 64).
The machine has a direct-mapped L1 data cache with 16-byte blocks with write-back, writeallocate policy. The cache capacity is 32 bytes (i.e., two cche blocks) and is initially empty.
12- Memory accesses to the array src andst are the only sources of data cache accesses (i.e., all other variables reside in registers).
The array is stored in the memory in row-major order.
16
50
44
(A)(8 points) For access of each array element in the table below, indicate whether it resulted in ache hit or miss by writing "h" for a hit and "m" for a miss. What is the cache miss rate? (D) aw the table on
exam.net)
16.20,2
36
\table[[,dst.0,Col.1,col.2,col.3],[Row0,M,N,N,N
 or-4480C ar6o 4 Problem 2.(12 points) Basic cache Consider the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!