サンプル呼び出しの結果

Microsoft 固有の仕様

__cdecl

C の装飾された関数名は _MyFunc です。

Diagram showing the stack and registers for the CDECL calling convention.
__cdecl 呼び出し規則

__stdcall および thiscall

C の装飾名 (__stdcall) は _MyFunc@20 です。 C++ の装飾名は実装固有です。

Diagram showing the stack and registers for the S T D call and this call calling conventions.
__stdcall と thiscall の呼び出し規約

__fastcall

C の装飾名 (__fastcall) は @MyFunc@20 です。 C++ の装飾名は実装固有です。

Diagram showing the stack and registers for the fast call calling convention.
__fastcall 呼び出し規則

Microsoft 固有の仕様はここまで

関連項目

呼び出しの例: 関数プロトタイプと呼び出し