in CO and Architecture recategorized by
390 views
4 votes
4 votes
Consider the cache of size 512 bytes that is direct-mapped?
Suppose the size of integer is 4 bytes and block size is 16 bytes. Assume cache is initially empty and all data except for the array x are stored in registers, and that the array x starts at address 0x0.

int x[128];
int i;
int sum = 0;
for (i = 0; i < 128; i++) {
    sum += x[i];
}

What is the miss rate for the above loop? (roundoff to two decimal places)
in CO and Architecture recategorized by
390 views

1 Answer

3 votes
3 votes
See this video for a complete understanding of the topic.

https://youtu.be/VRdMHogK1Hs?t=942
Answer:

Related questions