er a computer memory system with 24-bit addresses main memory, a cache capable of storing a total of 64K bytes of data and blocks of 32 bytes. Show the format of a memory address (include fields as well as their sizes) for following mappings (show your work): a. direct mapped b. associative c. 4-way set associative Convert into ARMV8 Assembly the following C code. Test/debug your code for different inputs. Name your solution file m5_ex1.s static long m=0x5; static long n=0x7; static long k=0x2; static long z; int main(void){ if((m
Consider a computer memory system with 24-bit addresses main memory, a cache capable
of storing a total of 64K bytes of data and blocks of 32 bytes. Show the format of a memory
address (include fields as well as their sizes) for following mappings (show your work):
a. direct mapped
b. associative
c. 4-way set associative
Convert into ARMV8 Assembly the following C code. Test/debug your code for different inputs.
Name your solution file m5_ex1.s
static long m=0x5;
static long n=0x7;
static long k=0x2;
static long z;
int main(void){
if((m<n)&&(m<k)){
z=m;
}
else if (n < k){
z=n;
}
else{
z=k;
}
return 0;
}
Exercise 2: Implement the following logic into ARMv8 Assembly. Test/debug your code for different
inputs. Name your solution files m5_ex2a.s and m5_ex2b.s
a) int i=10;
int j=5;
int g=1;
int f=0;
while (i!=j){
f=g+j;
j++;
}
printf("%d\n",f);
b) int m=5;
int k;
int a[5];
for(int k=0; k<5;k++){
m=m+k;
a[k]=k;
}
printf("m=%d\n",m);
printf("k=%d\n",k);
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images