RISC-V Topic Guide

Function Call

RISC-V function calls tie together JAL/JALR, x1 ra and the x5 alternate link register, call/ret assembler pseudo-instructions, and return-address stack (RAS) hints encoded implicitly by rd/rs1 link-register conventions.

JALJALRcallretrarasspa0a1