, . . " " wikipedia. :
$ gcc -S test.c
$ cat test.s
// [some contents snipped]
_doHello:
pushl %ebp // <--- pushes address of stack frame onto stack
movl %esp, %ebp // <--- sets up new stack frame
call _doHello // <--- pushes return value onto stack, makes call
popl %ebp // <--- pops address of stack frame off stack
ret // <--- pops return value off stack, returns to it
"-fomit-frame-":
$ gcc -fomit-frame-pointers -S test.c
$ cat test.s
// [some contents snipped]
_doHello:
call _doHello // <--- pushes return value onto stack, makes call
ret // <--- pops return value off stack, returns to it
, , , :
$ gcc -fomit-frame-pointers -O4 -S test.c # <--- heavy optimization
$ cat test.s
_doHello:
L2:
jmp L2
, , , (cygwin, ).
, (, Microsoft Visual ++ gdb) stackdumps, ( .core .stackdump), .
, : , . , .
, , valgrind Application Verifier .