Crossware

Table of Contents        Previous topic       Next topic       

C/C++ COMPILER->Function Calling Conventions->Introduction

The way that a function is called and returns is its calling convention.  The Crossware ARM C compiler supports three calling conventions:


__cdeclThis is the default calling convention.
__fastcallThis is the calling convention used when the /Gr option is used.
__stdcallThis is the calling convention used when the /Gz option is used.

Individual functions can also be declared using the __cdecl, __fastcall and __stdcall qualifiers to override the command line option.

The three calling conventions are described below.