__cdecl (抄自msdn)

来源:互联网 发布:三星手机数据恢复大师 编辑:程序博客网 时间:2024/05/20 13:10

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

原创粉丝点击