Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
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.
: 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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started