Question: In the following problems, you will compare code written using the ARM and MIPS instruction sets. The following table shows code written in the ARM
In the following problems, you will compare code written using the ARM and MIPS instruction sets. The following table shows code written in the ARM instruction set.
Assuming that the average CPI of the MIPS assembly routine is the same as the average CPI of the ARM assembly routine, and the MIPS processor has an operation frequency that is 1.5 times that of the ARM processor, how much faster is the ARM processor than the MIPS processor?
29 b. MOV r0. #10 r0, rl r0, 1 LOOP LOOP: ADD SUBS BNE ADD ADC r0, rl r2, r3 init loop counter to 10 ; add r1 to r0 ;decrement counter if Z-0 repeat loop :ro r0 + r1 :r2 = r2 r3 carry
Step by Step Solution
3.49 Rating (149 Votes )
There are 3 Steps involved in it
First lets analyze the ARM code a 1 MOV r0 10 2 LOOP ADD r0 r1 3 SUBS r0 1 4 BNE LOOP b 1 ADD r0 r1 ... View full answer
Get step-by-step solutions from verified subject matter experts
