Stack location and growth direction (GCC)
Posted: Sun Jun 23, 2013 8:20 am
GCC's frame layout documentation contains this paragraph:
http://gcc.gnu.org/onlinedocs/gccint/Fr ... ame-Layout
Meaning that ESP will hold the upper limit of the stack (a value larger than the one of EBP)?
http://gcc.gnu.org/onlinedocs/gccint/Fr ... ame-Layout
So this means that by default the stack will grow upward?GCC Online Docs wrote:— Macro: STACK_GROWS_DOWNWARD
Define this macro if pushing a word onto the stack moves the stack pointer to a smaller address.
Meaning that ESP will hold the upper limit of the stack (a value larger than the one of EBP)?