Question: Exercise 2. (25 Marks] Consider a 32-bit computer with a simplified memory hierarchy. This hierarchy contains a single cache and an unbounded backing memory. The
![Exercise 2. (25 Marks] Consider a 32-bit computer with a simplified](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3a01ab6038_26666f3a01a2cebf.jpg)
Exercise 2. (25 Marks] Consider a 32-bit computer with a simplified memory hierarchy. This hierarchy contains a single cache and an unbounded backing memory. The cache has the following characteristics: 2-way associative, Write-through, Write allocate. Cache blocks are 8 words each. The cache has 512 sets. (a) [7 marks] Consider the following code fragment in the C programming language to be run on the described computer. Assume that: the cache is initially empty, only the data arrays are stored in cache, arrays are cache-aligned (the beginning of the array aligns with the beginning of a cache line), ints are 32 bits, and that every memory access results in either a cache hit or a cache miss. int A[N]; for (int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
