Question: Assume we have a 4 MB cache with 6 4 - byte blocks. How many misses and hits would the below for - loop incur?
Assume we have a MB cache with byte blocks. How many misses and hits would the
below forloop incur? Assume each array element needs bytes of memory.
Hint: note that the loop has a total of accesses.
Hint: recall the example we solved together in slide in unit
for ;;
;
A Number of blocks in the cache is
B Number of cache misses is
C Number of cache hits is
Show your work in the space below for all questions A C
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
