Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Calling convention, argument register, return-value register?

Ook bekend als: calling convention · argument register · return-value register

Definition 10.12 University Computer Science — Year 2 · Hoofdstuk 10 — Assembly Language and the Calling Convention

A calling convention fixes how functions pass arguments and results, which registers a call may change, and how the stack is used. In RISC-V the integer arguments go in the argument registers a0 to a7, in order (more on the stack), and the result comes back in the return-value registers a0 and a1. jal ra, f (call f) jumps and leaves the return address in ra; jalr zero, 0(ra) (ret) goes back.

Lees in het hoofdstuk →