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)