(e) The following code will be run on a machine with Cache A. Assume that: Cache A is a write-back cache. integer takes

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 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

Post by answerhappygod »

E The Following Code Will Be Run On A Machine With Cache A Assume That Cache A Is A Write Back Cache Integer Takes 1
E The Following Code Will Be Run On A Machine With Cache A Assume That Cache A Is A Write Back Cache Integer Takes 1 (28.96 KiB) Viewed 42 times
(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 question) Assuming that the cache has 8 sets, what is the index value(s) of the block accessed in the previous question? Index value:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply