<<< PASCAL-style Procedure Stack Maintenance | Index | STDCALL Caller and Callee Summary >>> |
The following sample illustrates the code generated in the calling function and in the called function to support __cdecl, the C calling convention:
int __cdecl CFunc( int a, int b ); calling function called function ----------------- ------------------- push b _CFunc PROC NEAR push a . call _CFunc . add esp,8 . . RET . _CFunc ENDP . int __cdecl CVarFunc( int a, ...); calling function called function ----------------- ------------------- push ... _CVarFunc PROC NEAR push a . call _CVarFunc . add esp,4+... . . RET . _CVarFunc ENDP .
<<< PASCAL-style Procedure Stack Maintenance | Index | STDCALL Caller and Callee Summary >>> |