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

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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);

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY