Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.34 KB

results-of-calling-example.md

File metadata and controls

37 lines (24 loc) · 1.34 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Results of Calling Example
Results of Calling Example
11/19/2018
examples [C++], results of calling
results, thiscall call
results, __fastcall keyword call
results, __cdecl call
results, __stdcall call
aa70a7cb-ba1d-4aa6-bd0a-ba783da2e642

Results of Calling Example

Microsoft Specific

__cdecl

The C decorated function name is _MyFunc.

Diagram showing the stack and registers for the CDECL calling convention.
The __cdecl calling convention

__stdcall and thiscall

The C decorated name (__stdcall) is _MyFunc@20. The C++ decorated name is implementation-specific.

Diagram showing the stack and registers for the S T D call and this call calling conventions.
The __stdcall and thiscall calling conventions

__fastcall

The C decorated name (__fastcall) is @MyFunc@20. The C++ decorated name is implementation-specific.

Diagram showing the stack and registers for the fast call calling convention.
The __fastcall calling convention

END Microsoft Specific

See also

Calling Example: Function Prototype and Call