Question: Consider the following assembly code for a compiled function: quiz: endbr32 pushl %ebp mov? %esp, %ebp subl $16, %esp mov? $3, -12(%ebp) movl $2, -8(%ebp)

Consider the following assembly code for a compiled function: quiz: endbr32 pushl %ebp mov? %esp, %ebp subl $16, %esp mov? $3, -12(%ebp) movl $2, -8(%ebp) movl $1, -4(%ebp) nop leave ret The 4th instruction subtracts 16 from %esp. Why? Select one: a. To make room on the stack to store arguments to a function call. b. To de-allocate space on the stack to return from a function. c. To allocate space on the stack for local variables. d. To set the return value of the function call. e. None of these
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
