Question: Consider a 6 4 - bit computer featuring a simplified memory hierarchy. This hierarchy comprises a solitary cache and an unbounded backing memory. The cache
Consider a bit computer featuring a simplified memory hierarchy. This
hierarchy comprises a solitary cache and an unbounded backing memory. The cache is defined by
the following attributes:
DirectMapped, Writethrough, Write allocate.
Cache blocks are words each.
The cache has sets.
a Consider the provided code snippet in the C programming language intended for execution
on the previously described computer. Assume the following conditions: program instructions are
not stored in the cache, arrays are aligned with the cache starting at the beginning of a cache
line integers are bits, and all other variables are exclusively stored in registers.
int N ; int
AN;
for int i ; i N; i
Ai Ai;
Determine the following:
i The number of cache misses.
ii The cache miss rate.
iii The type of cache misses that occur.
b Consider the following code fragment in the C programming language to be run on the
described computer. Assume that: program instructions are not stored in cache, arrays are cachealigned the beginning of the array aligns with the beginning of a cache line ints are bits, and
all other variables are stored only in registers.
int N ; int
AN; int BN;
for int i ; i N; i Bi Ai;
Determine the following:
i The number of cache misses.
ii The cache miss rate.
iii The type of cache misses that occur.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
