edited by
261 views
–1 votes
–1 votes

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

edited by

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
1
0 votes
0 votes
0 answers
2
Priyanshu01 asked Jun 14, 2023
276 views
Sir, I have subscribed the to GATE overflow + GO Classes test series for gate exam 2024. Today means 14 June 2023, there was a exam of GO Classes Test Series 2024 | Data ...
3 votes
3 votes
1 answer
3
AniMan_7 asked Nov 8, 2022
389 views
$Find \ Time \ Complexity :$ $T(n) =$ $n^{\frac{1}{3}}$ . T($n^{\frac{2}{3}}$) + $\Theta (n)$