Question: Consider the assembly code generated by the compiler for some corresponding C function. Explain what each assembly instruction does and describe what data is in

 Consider the assembly code generated by the compiler for some corresponding

C function. Explain what each assembly instruction does and describe what data

Consider the assembly code generated by the compiler for some corresponding C function. Explain what each assembly instruction does and describe what data is in the corresponding register. 1. C code: ;;;5 void fn(int8_t *a, int32_t *b, float + c) { Assembly (parts a-e) for above C code: a. 000000 b5f0 PUSH {r4-r7, 1r} b. (assembles with start of function; relates to lines 6 - 8 in C (problem 2)) 000002 6085 SUB sp, sp, #Ox14 c. 000004 4604 MOV r4, ro d. 000006 460d MOVr5, r1 1 Mov e. 000008 4616 r6, 12 MOV r6, r2 Consider the assembly code generated by the compiler for some corresponding C function. Explain what each assembly instruction does and describe what data is in the corresponding register. 1. C code: ;;;5 void fn(int8_t *a, int32_t *b, float + c) { Assembly (parts a-e) for above C code: a. 000000 b5f0 PUSH {r4-r7, 1r} b. (assembles with start of function; relates to lines 6 - 8 in C (problem 2)) 000002 6085 SUB sp, sp, #Ox14 c. 000004 4604 MOV r4, ro d. 000006 460d MOVr5, r1 1 Mov e. 000008 4616 r6, 12 MOV r6, r2

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 Databases Questions!