--calling_convention
In this section:
Syntax
--calling_convention=convention
Parameters
convention is one of:
| Selects the V1 calling convention. |
| Selects the V2 calling convention. |
Description
Use this option to specify the default calling convention for a module. All runtime modules in an application must use the same calling convention. However, note that it is possible to override this for individual functions, by using keywords.
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.
See also
Caution
Project>Options>General Options>Target>Calling convention