(e) The following code will be run on a machine with Cache A. Assume that: Cache A is a write-back cache. integer takes
Posted: Fri Jul 01, 2022 5:42 am
(e) The following code will be run on a machine with Cache A. Assume that: Cache A is a write-back cache. integer takes 4 bytes. • the highest memory address is 0x7FFFFFFF (virtual address). That is, the memory address 0x80000000 or higher does not store user program data. • the variable declared first is stored at the highest possible memory address. • the local variables are stored consecutively in the downwards direction) on the stack and must be byte-aligned. • the page size is 4096 bytes the virtual page number part of the virtual address won't be used for cache indexing. • variables are accessed by load and store instructions. int main() { int i = 0, j = 1; char el int k = 10; Cache A: 65, c2= 97; printf("id", return 0; What is the number of cycles used for accessing cache/memory during the execution of the code? Ignore the time to fetch instructions. (d) (continued from the previous