The return address in the assembly code

一笑奈何 提交于 2019-12-05 21:38:24

After that code executes %eax will have the address of label "next"

  1. the call branches to the target which happens to be the next sequential instruction and pushes the return address, which is always the address of the next sequential instruction
  2. the popl will pop the return address from the stack onto %eax register

The net effect is %eax points to label "next"

It's the address of the instruction immediately following the call instruction. See your CPU documentation on how call works.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!