Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Return address?

Definition 3.4 University Computer Science — Year 1 · Bab 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.
Baca dalam konteks →