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.
| Designation | Parameter order | Clean-up by | Common Usage |
register | Left-to-right | Routine | Delphi applications |
pascal | Left-to-right | Routine | Backwards compatibility |
cdecl | Right-to-left | Caller | Calling C and C++ library routines |
stdcall | Right-to-left | Routine | Windows API calls (except) |
safecall | Right-to-left | Routine | COM and dual interface routines |
Source: www.guidogybels.net.