When execution enters a new function by performing call I do often see this code template (generatingasm list generated by Gnu Debugger when in debugging mode):
0x00401170 push %ebp 0x00401171 mov %esp,%ebp 0x00401173 pop %ebp So what's the purpose of moving esp to ebp?