Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Calling convention, argument register, return-value register?

Também chamado de: 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.

Ler no capítulo →