計算機組織與結構›Ch6 記憶體(Memory)
第 31 題/共 83 題
◀ CC 31/83
31. Direct-Mapped Cache、Compulsory Miss、Block Size
#CC-06-031易Direct-Mapped CacheCompulsory MissBlock Size

The system has a direct-mapped cache with total data size of 8192 bytes and block size of 16 bytes. Assume the cache starts out empty. For the following piece of code, which of following statements are correct? (Note: Assume that int is of 32-bits (4 bytes); variables x and i are both in registers and the array A is in memory.)

int A[256];
int x = 0;
for (int i = 0; i < 256; i++) {
    x += A[i];
}
📄 交大112
跳轉到第題
▤完整推導請見《WH 資工筆記 · 計算機組織與結構》Ch6 記憶體(Memory)
本章題號 · 21–40 / 83