1. Links
Calling Conventions Demystified: http://www.codeproject.com/Articles/1388/Calling-Conventions-Demystified
Calling Conventions Demystified: http://www.codeproject.com/Articles/1388/Calling-Conventions-Demystified
Conclusion
To cut a long story short, we'll outline the main differences between the calling conventions:
__cdeclis the default calling convention for C and C++ programs. The advantage of this calling convetion is that it allows functions with a variable number of arguments to be used. The disadvantage is that it creates larger executables.__stdcallis used to call Win32 API functions. It does not allow functions to have a variable number of arguments.__fastcallattempts to put arguments in registers, rather than on the stack, thus making function calls faster.Thiscallcalling convention is the default calling convention used by C++ member functions that do not use variable arguments.
No comments:
Post a Comment