Created
February 18, 2019 20:52
-
-
Save albertzsigovits/1748d355bdb73ed8d349a0f94c589e2f to your computer and use it in GitHub Desktop.
Calling conventions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int __cdecl function_cdecl(int a, int b, int c) | |
{ | |
return (a + b + c) | |
} | |
int __stdcall function_stdcall(int a, int b, int c) | |
{ | |
return (a + b + c) | |
} | |
int __fastcall function_fastcall(int a, int b, int c) | |
{ | |
return (a + b + c) | |
} | |
int main(void) | |
{ | |
function_cdecl(1, 2, 3); | |
function_stdcall(4, 5, 6); | |
function_fastcall(7, 8, 9); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment