Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Return address » ?

Definition 3.4 University Computer Science — Year 1 · Chapitre 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.
Lire dans le chapitre →