Saturday, August 20, 2011

Calling Convention

X86 calling conventions

Argument Passing and Naming Conventions (C++)

- The following calling conventions are supported by the Visual C/C++ compiler.
1. cdecl: stack cleanup (caller), parameter passing (stack, right to left)
2. stdcall: stack cleanup (callee), parameter passing (stack, right to left)
3. fastcall: stack cleanup (callee), parameter passing (stored in register, then pushed on stack)

Video Tutorial - Calling Conventions

No comments: