Question: for ( j = 0 ; j < 1 0 0 ; j + + ) for ( i = 0 ; i < 3

for (j=0; j<100; j++)
for (i=0; i<300; i++)
A[j][i]= B[i][0]+ C[i][j];
(a) How many 64-bit integers can be stored in a 16-byte cache block?
(b) Which variable references exhibit temporal locality?
(c) Which variable references exhibit spatial locality? Locality is affected by both the reference
order and data layout.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!