Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started