44 j r levine linkers and loaders morgan kaufmann san

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: first element of grid[0][1] misses. A. What is the total number of read accesses? 512 reads. B. What is the total number of read accesses that miss in the cache? 256 misses. C. What is the miss rate? ¾ ½¾ ¼± . D. What would the miss rate be if the cache were twice as big? If the cache were twice as big, it could hold the entire grid array. The only misses would be the initial cold misses, and the miss rate would be ½ ¾ ±. Problem 6.17 Solution: [Pg. 326] This loop has a nice stride-1 reference pattern, and thus the only misses are the initial cold misses. B.7. LINKING A. What is the total number of read accesses? 512 reads. B. What is the total number of read accesses that miss in the cache? 128 misses. C. What is the miss rate? ½¾ ½¾ ¾± 723 . D. What would the miss rate be if the cache were twice as big? Increasing the cache size by any amount would not change the miss rate, since cold misses are unavoidable. Problem 6.18 Solution: [Pg. 331] This problem is just a sanity check t...
View Full Document

This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.

Ask a homework question - tutors are online