For the following program, assume that an integer is 4 bytes. int i; // Assume these variables are stored in the registers. int a [65536]; // Assume that a = 0x1000 int b[65536]; // Assume that b = 0x8000000 for (i=0; i<65536; i++) { } for(i=0; i<1024; i++) { a[i] = 182==0?i:0; b[i] = 183==0?a [i]:b[i-1];; } c[i] = a[i] + b[i]; Let's asssume that i is already stored on the register. How many cache accesses are being generated

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter11: Operating Systems
Section: Chapter Questions
Problem 19VE
icon
Related questions
Question
For the following program, assume that an integer is 4 bytes.
int i; // Assume these variables are stored in the registers.
int a [65536]; // Assume that a = 0x1000
int b[65536]; // Assume that b = 0x8000000
for (i =0; i<65536; i++)
{
}
a[i] = 182==0?i:0;
b[i] = 183==0 ?a[i]:b[i-1]; ;
for (i=0; i<1024; i++)
{
}
c[i]= a[i] + b[i];
Let's asssume that i is already stored on the register. How many cache accesses are being generated
Transcribed Image Text:For the following program, assume that an integer is 4 bytes. int i; // Assume these variables are stored in the registers. int a [65536]; // Assume that a = 0x1000 int b[65536]; // Assume that b = 0x8000000 for (i =0; i<65536; i++) { } a[i] = 182==0?i:0; b[i] = 183==0 ?a[i]:b[i-1]; ; for (i=0; i<1024; i++) { } c[i]= a[i] + b[i]; Let's asssume that i is already stored on the register. How many cache accesses are being generated
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Unary Predicate
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning