Next: Introduction to Dynamic Link Libraries (DLLs), Previous: Mixed-Language Programming on Windows, Up: Microsoft Windows Topics
When a subprogram F
(caller) calls a subprogram G
(callee), there are several ways to push G
's parameters on the
stack and there are several possible scenarios to clean up the stack
upon G
's return. A calling convention is an agreed upon software
protocol whereby the responsibilities between the caller (F
) and
the callee (G
) are clearly defined. Several calling conventions
are available for Windows:
C
(Microsoft defined)
Stdcall
(Microsoft defined)
DLL
(GNAT specific)