Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Calling convention, argument register, return-value register?

También llamado: calling convention · argument register · return-value register

Definition 10.12 University Computer Science — Year 2 · Capítulo 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.

Leer en el capítulo →