default calling convention for C and C++ programs.
Because the stack is cleaned up by the caller, it can do vararg functions.
The __cdecl calling convention creates larger executables than __stdcall, because it requires each function call to include stack cleanup code.
Element
Implementation
Argument-passing order |
Right to left |
Stack-maintenance responsibility |
Calling function pops the arguments from the stack |
Name-decoration convention |
Underscore character (_) is prefixed to names, except when exporting __cdecl functions that use C linkage. |
Case-translation convention |
No case translation performed |