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.
Computer Science · Glossário
O que é Calling convention, argument register, return-value register?
Também chamado de: calling convention · argument register · return-value register