Call Method |
Parameter transfer |
Clear Stack |
Variable Length Parameter supported |
Objects used |
Function Name Modification (Name-decoration Convention) |
Others |
_ Cdecl |
From right to left |
Caller |
Supported |
C/C ++ default call Method |
The name of the function is prefixed with an underscore (_ main ). |
The generated code is larger than stdcall because each function call must contain the code for clearing the stack. |
_ Stdcall |
From right to left |
Called |
Not Supported |
Use of export functions in Win32 API and DLL |
Starts with an underscore, the function name, the @ symbol, and the total number of bytes of the parameter. For example, int F (int A, double B) is named _ f @ 12. |
|
_ Fastcall |
Put it in EDX and ECx first, from right to left |
Called |
Not Supported |
|
Start with @, the function name, And the @ symbol is the total number of bytes of the parameter, for example, @ f @ 12. |
Fast parameter passing, that is, quick call |
Thiscall |
From right to left, this pointer is placed in ECx |
Called |
Not Supported |
C ++ is dedicated to member functions to support this pointer. |
|
|
This document is compiled based on msdn.