int a[2][128];
inti;
int sum=0;
for(i=0;i<128;i++){
sum+= a[0][i]*a[1][i];}
size of integer is 4 bytes.
cache is initially empty.
the only memory accesses are to the enteries of the array a. all other variables are stored in registers
1.what is the miss rate for a cache of size 512 bytes that is direct mapped and has 16 bytes cache block size if array is stored in column major order
2.what is the miss rate for a cache of size 1024 bytes that is direct mapped and has 32 bytes cache block size if array is stored in column major order