Skip to main content

IAR Embedded Workbench for RISC-V 3.40

enter_leave

In this section:
Syntax
#pragma enter_leave={inline|subroutine}
Parameters

inline

Inlines the prologue and epilogue code in functions.

subroutine

Performs calls to prologue and epilogue subroutines from functions.

Description

Use this pragma directive to control whether to inline the prologue and epilogue sequences or to perform calls to subroutines. Inlining these sequences can be used when a function needs to exist on its own as in, for example, a boot loader that needs to be independent of the libraries it is replacing.

Example
#pragma enter_leave=inline
void bootloader(void) @"BOOTSECTOR"
{
    ...
}