Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Return address?

Definition 3.4 University Computer Science — Year 1 · Capítulo 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.
Ler no capítulo →