Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
Below are three different architecture styles: 1) Memory-memory: All three operands of each instruction are in memory. 2) Register to memory: At most one source
Below are three different architecture styles: 1) Memory-memory: All three operands of each instruction are in memory. 2) Register to memory: At most one source operand in memory, destination operand can be in memory or register. 3) Load-store: All operations occur in registers, and register-to-register instructions have three operands per nstruction Keep all intermediate variables in registers aslong as possible. For the following C code, write an equivalent assembly language program in each architectural style (assume all variables are initially in memory, x is the final result): e me d b- c; For each code sequence, calculate the instruction bytes fetched and the memory dat:a bytes transferred (read or written). Opcode is 8 bits long, register address is 8 bits long, memory address is 16 bits long, and one word of data is 32 bits long 1) Which architecture is most efficient as measured by code size? 2) Which architecture is most efficient as measured by total memory bandwidth required (code+data)? If the answers are not the same, why are they different
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started