Question: Q 2 . [ 7 0 points ] For the following assume that values A , B , C , D , E , and
Q 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 bits, memory addresses are bits, data size is
bits and register addresses are bits.
a For each instruction set architecture shown in Figure A how many addresses, or
names including both memory and register appear in each instruction for the code to
compute and what is the total code size?
b Some of the instruction set architectures in Figure A 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 write the code
sequence to compute:
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?
Figure A The code sequence for for four classes of instruction sets. Note
that the Add instruction has implicit operands for stack and accumulator architectures
and explicit operands for register architectures. It is assumed that A B and C all belong
in memory and that the values of A and cannot be destroyed. Figure A shows the
Add operation for each class of architecture.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
