CALL

Call Subroutine

CALL symbol

Calls a function by jumping to an address and saving the return address.

Details

CALL calls a far subroutine using a two-instruction AUIPC+JALR sequence, saving the return address in x1 (ra).

Pseudocode Operation

x1 = PC + 4; PC = symbol;

Example

CALL printf

Encoding

Binary Layout
AUIPC + JALR
 
Format Pseudo
Opcode Variable
Extension Pseudo

Operands

  • symbol
    Function Name