Skip to main content

IAR Embedded Workbench for RL78 5.20

__v1_call

In this section:
Syntax

See Syntax for type attributes used on functions.

Description

The __v1_call keyword makes the compiler use the calling convention of the IAR C/C++ Compiler for RL78 version 1.x for the function instead of the default calling convention. The V1 calling convention is required for backward compatibility with code written for the IAR C/C++ Compiler for RL78 version 1.x.

This keyword does not affect the bitfield allocation strategy.

Note

If you are migrating from version 1.x of the compiler, note that the stack is now cleaned by the calling function, not by the called function, regardless of which calling convention you use. Assembler functions that take stack parameters must be updated before you can use them.

Example
__v1_call int func(int arg1, double arg2);
See also

Calling convention.