Question: Consider the following C functions and assembly code: int fun5(int a) { return a * 5; } int fun6(int a) { return a * 17;
Consider the following C functions and assembly code:
int fun5(int a) { return a * 5; }
int fun6(int a) { return a * 17; }
int fun7(int a) { return a * 30; } int fun8(int a) { return a * 34; } int fun9(int a) { return a * 18; } pushl %ebp movl %esp,%ebp movl 8(%ebp),%eax sall $4,%eax addl 8(%ebp),%eax addl %eax,%eax movl %ebp,%esp popl %ebp ret
Which of the functions compiled into the assembly code shown?
Group of answer choices
fun9
fun7
fun5
fun6
fun8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
