2 ms·
A function call causes the return address to be pushed onto the stack, thus accessing the stack below the adjusted stack pointer address. On compiler generated
by st_goliath 1mo ago
A function call causes the return address to be pushed onto the stack, thus accessing the stack below the adjusted stack pointer address.
On compiler generated x86 code, the base pointer register will quickly follow when entering the target function.
- stkdump 1mo agoMakes sense. The only exception - tail call optimization where no (new) return address is pushed - relies on cleaning up the stack before executing the tail call.