Example of Use of Calling Conventions.
Function is :
void calltype MyFunc( char c, short s, int i, double f );
.
.
.
void MyFunc( char c, short s, int i, double f )
{
.
.
.
}
.
.
.
MyFunc ('x', 12, 8192, 2.7183);
1 . _cdecl :
The C decorated function name is "_MyFunc.
The __cdecl calling convention

2 . stdcall and thiscall : The C decorated name (__stdcall) is "_MyFunc@20." The C++ decorated name is proprietary.
The __stdcall and thiscall calling conventions

3. __fastcall: The C decorated name (__fastcall) is "@MyFunc@20." The C++ decorated name is proprietary.
The __fastcall calling convention

4. __stdcall and thiscall : The C decorated name (__stdcall) is "_MyFunc@20." The C++ decorated name is proprietary.
The __stdcall and thiscall calling conventions
5. __fastcall: The C decorated name (__fastcall) is "@MyFunc@20." The C++ decorated name is proprietary.
The __fastcall calling convention

Comments
Post a Comment