[fpc-devel] Safecall on Linux (and other unices?)

Henry Vermaak henry.vermaak at gmail.com
Thu Jul 22 19:36:25 CEST 2010


On 22 July 2010 18:05, José Mejuto <joshyfun at gmail.com> wrote:
> Hello Joost,
>
> Thursday, July 22, 2010, 5:57:27 PM, you wrote:
>
>>> Even if declarations in the code are wrong (which I had not checked, I
>>> assumed they were fine) the "const" behavior with record in Windows
>>> safecall and linux cdecl is different.
> JvdS> Offcourse the behaviour is different for a different calling convention
> JvdS> and OS. That's perfectly normal. If all calling conventions were the
> JvdS> same, we woudn't have them.
>
> Yes, but I think, maybe I'm wrong, that a cdecl declaration in any
> platform matches the same behavior in other platform. This means that:

No.  Most platforms also don't have multiple calling conventions, so
the only calling convention would map to cdecl, since that would be
the one that the c compilers will use.

Henry



More information about the fpc-devel mailing list