You are given the following benchmark code: double A[1024], B[1024], C[1024]; for(int i=0;i
Fantastic news! We've Found the answer you've been seeking!
Question:
You are given the following benchmark code: double A[1024], B[1024], C[1024]; for(int i=0;i<1000;i += 2) { A[i] = 35.0 * B[i] + C[i+1]; } Compute the overall miss rate (number of misses divided by number of references) assuming that all variables except array locations reside in registers, and that arrays A, B, and C are placed consecutively in memory.
4.1 Assume a virtually addressed, fully-associative cache with infinite capacity and 64 byte blocks.
4.2 Assume a virtually addressed, direct-mapped cache of capacity 8KB and 64 byte blocks.
4.3 Assume a virtually addressed two-way set-associative cache of capacity 8KB and 64 byte blocks.
Related Book For
Money Banking and Financial Markets
ISBN: 978-0078021749
4th edition
Authors: Stephen Cecchetti, Kermit Schoenholtz
Posted Date: