x86_64 ,retq 从哪里找到返回地址?

x86_64 中,在刚刚调用了callq时,返回地址其实是刚好被压栈的,所以此时正好被 rsp 寄存器指向
答案来源:https://stackoverflow.com/questions/18311242/retq-instruction-where-does-it-return
 
posted @ 2023-03-05 04:53  yinhuachen  阅读(73)  评论(0编辑  收藏  举报