Security Basics mailing list archives
Re: [Fwd: Re: wargame issue]
From: Joe Barrett <barrettj () umd edu>
Date: Tue, 20 Sep 2005 12:25:16 -0400
haad wrote:
I try to compile this code an view assembly source but i see thi in my function prolog pushl %ebp movl %esp, %ebp subl $40, %esp i have my stack subtracted by 40. Why ??? I don't understand .
The function prologue sets up the stack and frame pointers for this new function and allocates 40 bytes of space on the stack (remember, the stack grows down, hence to allocate space you subtract from it - and to deallocate space in your epilogue, you add to the stack pointer). Cheers, Joe Barrett
Current thread:
- [Fwd: Re: wargame issue] haad (Sep 20)
- Re: [Fwd: Re: wargame issue] Joe Barrett (Sep 22)
- <Possible follow-ups>
- Re: [Fwd: Re: wargame issue] mhal70 (Sep 22)