Question: 1. (40 points) We have a 1024 byte cache that is direct mapped. Each line of the cache stores a 64-byte block. We have the

1. (40 points) We have a 1024 byte cache that is direct1. (40 points) We have a 1024 byte cache that is direct mapped. Each line of the cache stores a 64-byte block. We have the following structure definition: struct object { int a; /* uses 4 bytes of memory */ int b; /* uses 4 bytes of memory */ double c; /* uses 8 bytes of memory */ }; (a) For this code block struct object data[192]; /* starts at memory address 0 */ int sumA = 0, sumB = 0, i; /* these are stored in registers */ double sumC = 0; /* this is stored in a register */ for(i = 0; i 1. (40 points) We have a 1024 byte cache that is direct mapped. Each line of the cache stores a 64-byte block. We have the following structure definition: struct object t int a; uses 4 bytes of memory/ int b uses 4 bytes of memory/ double c; uses 8 bytes of memory/ (a) For this code block struct object data[192] starts at memory address 0 int sumA sumB-0, i; /* these are stored in registers/ double sumC 0; / this is stored in a register for(i - 0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!