[fpc-devel] Calling conventions
Joost van der Sluis
joost at cnoc.nl
Mon Jan 3 11:54:58 CET 2011
On Sun, 2011-01-02 at 22:11 -0500, Andrew Haines wrote:
> I would like to implement whatever is common to interface
> winapi(stdcall?) on win32 and just wanted to know if stdcall is for sure
> what I want.
> I know on x64 there is only one calling convention each for windows64
> and everything_else_64.
> On linux32 and win32 what cc does fpc use by default?
Open Lazarus, write some code which uses an api call, use ctrl+click on
the name of the api call, and look for yourself how the call is
Probably stdcall, yes. And please note that this has nothing to do with
fpc. It's Microsoft that decided what calling convention to use, and
no-one can differ from that.
More information about the fpc-devel