0 votes
in General Knowledge by (744k points)
When are the values of rsp and rbp set?

1 Answer

0 votes
by (744k points)
 
Best answer
rsp -> initialized by the OS, and we have access to the register. Several x86-64 instructions can change the value, and we can explicitly change it to.

rbp -> must be set at the beginning of the function, after preserving the value of rbp for the caller function.
Welcome to the Answerine , a great place to find, read and share your favorite questions and answers.
...