Question: Exercises Consider the assembly code which the compiler generates for a C function. Explain what each assembly instruction does and describe the data is in

Exercises
Consider the assembly code which the compiler generates for a C function. Explain what each assembly
instruction does and describe the data is in the register.
dots5 void folint8_t ?*a, int 32t*b, float
000000 b5f0 PUSH {r4-r7,lr}
000002 buB 085 sp,sp,#O\times 14
0000044604MOVr4,r0
000006460d,MOV,s,r1
0000084616 MOV r6,r2
dots6, volatile int8_t a1, a2;
dots8, volatile float c1,c2;
dots9
cdots10, a1=15;
00000a_270f MOVS r7,#0xf
dots11,a2=-14;
00000 c 200 d MOVS r0,#0xd
00000 e 43 cO MVNS r0,r0
0000109004 STR r0,[sp,#010]
dots12,*a=a1*a2;
0000129804? LDR r0,[sp,#0\times 10]
Exercises Consider the assembly code which the

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!