全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Return address?

Definition 3.4 University Computer Science — Year 1 · 第 3 章 — Functions and the Call Stack

The return address of a call is the address of the instruction that follows the call instruction in the caller. The call instruction pushes it on the stack before jumping to the called function, and the function’s final ret instruction pops it and jumps there.

The stack while swap prints its line, the latest frame at the bottom. The parameters a and b were filled with copies of x and y, then exchanged; main’s variables are untouched. When swap returns, its frame is popped and the processor jumps to the return address.
The stack while swap prints its line, the latest frame at the bottom. The parameters a and b were filled with copies of x and y, then exchanged; main’s variables are untouched. When swap returns, its frame is popped and the processor jumps to the return address.
在原文中阅读 →