1

When dealing with local variables, the normal way is after pushing rbp and moving rsp's value to rbp, we subtract rsp to reserve space in the head of function, and accessing local variables via rbp. I wonder why not just push one once meeting a local variable, and we can still access local variables via rbp.

Peter Cordes
  • 328,167
  • 45
  • 605
  • 847
Evian
  • 1,035
  • 1
  • 9
  • 22

0 Answers0