Skip to main content

IAR Embedded Workbench for RISC-V 3.40

__return_address

In this section:
Syntax
void * __return_address(void);
Description

Returns the address that the function will return to. For interrupt functions, the appropriate control and status register (CSR) will be read.For regular functions, the value is fetched from the link register—usually ra, but it can be a different register for static functions.

Note

To use intrinsic functions in an application, you must include the header file(s) where they are declared, see Summary of intrinsic functions.