3 ms·
> Isn't it disingenuous to call esp/ebp (or rsp/rbp) general purpose registers In the sense of instruction encoding they are. Additionally, the x86-64 call con
by wolfgke 10y ago
> Isn't it disingenuous to call esp/ebp (or rsp/rbp) general purpose registers
In the sense of instruction encoding they are. Additionally, the x86-64 call convention typically does not use ebp as frame pointer (except when you use something like alloca). Instead functions typically allocate their nessesary stack amount at the begin. So ebp is generally used as a general purpose register by most compilers in x86-64.