[fpc-devel] Calling conventions

Andrew Haines AndrewD207 at aol.com
Mon Jan 3 04:11:17 CET 2011


I am writing a unit to "automatically" write Trampoline functions on the
fly. So assigning "plain" callbacks to TMethod's work.

Currently it can handle cdecl on linux32/64. I've tested it with up to 9
parameters and it works well.

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?


Andrew Haines

More information about the fpc-devel mailing list