Q81
MCQ2 marks, −0.5A CPU has a direct mapped cache with byte-block size. Suppose is two dimensional array of size with elements that occupy each. Consider the following two code segments, and . : for (i=0; i<512; i++) { for (j=0; j<512; j++) { x +=A[i] [j]; } } P2: for (i=0; i<512; i++) { for (j=0; j<512; j++) { x +=A[j] [i]; } } and are executed independently with the same initial state, namely, the array is not in the cache and , , are in registers. Let the number of cache misses experienced by be and that for be . The value of the ratio :
Sign in to save attempts.
Loading…