给定如下假设:
- sizeof (int)==4。
- square起始于内存地址0。
- 高速缓存初始为空。
- 唯一的内存访问是对于square数组中的元素。变量i和j存放在寄存器中。
确定下列代码的高速缓存性能:
for(i=0;i<16;i++){ for(j=0;j<16;j++){ square[j][i].c = 0; square[j][i].m=0; square[j][i].y =1; square [j][i].k = 0; } }
A.写总数是多少?
B.在高速缓存中不命中的写总数是多少?
B.在高速缓存中不命中的写总数是多少?
C.不命中率是多少?