How is return address specified in stack?

Posted by Mask on Stack Overflow See other posts from Stack Overflow or by Mask
Published on 2010-03-30T04:59:20Z Indexed on 2010/03/30 5:03 UTC
Read the original article Hit count: 491

This is what I see by disassemble for the statement function(1,2,3);:

movl   $0x3,0x8(%esp)
movl   $0x2,0x4(%esp)
movl   $0x1,(%esp)
call   0x4012d0 <_Z8functioniii>

It seems the ret address is not pushed into stack at all,then how does ret work?

© Stack Overflow or respective owner

Related posts about assembly

Related posts about stack