Question: Review the attached code sample which is designed to run in sequential order on a single processor. Identify how the code would run on a

Review the attached code sample which is designed to run in sequential order on a single processor. Identify how the code would run on a dual processor system with processors A and B. Show the execution of code for each processor.
Assember.asm:
LDR r0,[r8] ;Get A
MUL r0,r0,r0 ;A*A
LDR r1,[r8,#4] ;Get B
MUL r1,r1,r1 ;B*B
ADD r0,r0,r1 ;A*A + B*B
MUL r0,r0,#18 ;18(A*A + B*B)
LDR r1,[r8,#8] ;Get C reuse r1
MUL r2,r1,r1 ;C*C
MUL r3,r1,#12 ;12C*C
ADD r2,r2,r3 ;18(A*A + B*B)+12C*C
MUL r1,r1,#17 ;17C
ADD r2,r2,r10 ;18(A*A + B*B)+12C*C +17C
ADD r2,r2,#25 ;18(A*A + B*B)+12C*C +17C +25

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!