Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 2 . [ 7 0 points ] For the following assume that values A , B , C , D , E , and

Q2.[70 points]
For the following assume that values A, B, C, D, E, and F reside in memory. Also assume that
instruction operation codes are represented in 6 bits, memory addresses are 32 bits, data size is
16 bits and register addresses are 4 bits.
a. For each instruction set architecture shown in Figure A.2, how many addresses, or
names (including both memory and register), appear in each instruction for the code to
compute C=A+B, and what is the total code size?
b. Some of the instruction set architectures in Figure A.2 destroy operands in the course
of computation. This loss of data values from processor internal storage has
performance consequences. For each architecture in Figure A.2, write the code
sequence to compute:
C=A+B
D=C+A
E=E+D
In your code, mark each operand that is destroyed during execution and mark each
"overhead" instruction that is included just to overcome this loss of data from processor
internal storage. What is the total code size, the number of bytes of instructions and data
moved to or from memory, the number of overhead instructions, and the number of
overhead data bytes for each of your code sequences?
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions

Question

=+j Explain the relationship between unions and MNEs.

Answered: 1 week ago

Question

=+Have they changed the way employees view IP?

Answered: 1 week ago