_cdecl 参数从右到左压入,由调用者弹出,函数名'_'前置
_stdcall 参数从右到左压入,由被调用者弹出,函数名无变化
_stdcall 参数从右到左压入,由被调用者弹出,函数名无变化
_pascal 参数从左到右压入,由调用者弹出,函数名大写
_fastcall 参数从左到右压入,由被调用者弹出,函数名 '@'前置
void fun(1,2);
1。_cdecl 是这样的
push 2
push 1
call _fun
add ebp,8
调用者恢复堆栈,也就是push 2,push 1时压入8个byte
2. _stdcall
push 2
push 1
call fun
_fastcall 参数从左到右压入,由被调用者弹出,函数名 '@'前置
void fun(1,2);
1。_cdecl 是这样的
2. _stdcall