Table 2: Calling Conventions

This table gives an overview of the calling conventions that are supported by the Delphi compiler. For parameter order, "left-to-right" means that the parameters are pushed into registers or on the stack in the order that they are declared. Obviously "right-to-left" means that parameters are pushed in reverse order.

DesignationParameter orderClean-up byCommon Usage
registerLeft-to-rightRoutineDelphi applications
pascalLeft-to-rightRoutineBackwards compatibility
cdeclRight-to-leftCallerCalling C and C++ library routines
stdcallRight-to-leftRoutineWindows API calls (except)
safecallRight-to-leftRoutineCOM and dual interface routines

Source: www.guidogybels.net.