0 votes
in General Knowledge by (773k points)
What does leave do? What is it equivalent to?

1 Answer

0 votes
by (773k points)
 
Best answer
Sets up stack pointer to the base frame address. Pops what is at top of stack into %rbp (adding 8 bytes to %rsp). Prepares the stack for return instruction.

equivalent to:
movq %rbp, %rsp
popq %rbp
Welcome to the Answerine , a great place to find, read and share your favorite questions and answers.
...