Question: 1 : float dotprod ( float x [ 8 ] , float y [ 8 ] ) 2 : { 3 : float sum =
: float dotprodfloat x float y: : float sum ; int i; : for i ; i ; i: sum xi yi; : return sum; : b With the following assumptions: Floats are bytes, that x is loaded into the bytes of contiguous memory starting at address and that y starts immediately after x at address A directmapped cache block is bytes big enough to hold four floats and a total cache size of bytes. The variables sum and i are stored in a CPU register and thus do not require a memory reference. For each memory reference first two are given below in the code, identify it as a cache hit or miss. Show the intermediate steps and the final content of the cache: float dotprodfloat x float y: : float sum ; int i; : for i ; i ; i: sum xi yi; : return sum; : b With the following assumptions: Floats are bytes, that x is loaded into the bytes of contiguous memory starting at address and that y starts immediately after x at address A directmapped cache block is bytes big enough to hold four floats and a total cache size of bytes. The variables sum and i are stored in a CPU register and thus do not require a memory reference. For each memory reference first two are given below in the code, identify it as a cache hit or miss. Show the intermediate steps and the final content of the cache.
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
