RSS‎ > ‎

cdecl versus stdcall: function calls explained

posted Jan 17, 2015, 10:43 AM by Brian Hall   [ updated Aug 11, 2015, 8:03 PM ]
Technical Paper No. 2 has been published. It is entitled cdecl versus stdcall on x86 architecture: But really a discussion of how function calls use registers and stack.

SYNOPSIS
cdecl and stdcall are calling conventions that define the process of a procedure call.
cdecl is based on the C language, while stdcall is used by the Windows API.
This Technical Paper explains and illustrates the difference, but really details how functions use
registers and stack.
If you want to better understand how functions calls are implemented at a low-level, this paper is for you.