[fpc-pascal] Does the varargs specifier behave differently on 32 and 64 bit platforms?
Jonas Maebe
jonas at freepascal.org
Fri Jan 5 20:44:49 CET 2024
On 05/01/2024 14:38, Thomas Kurz via fpc-pascal wrote:
> The CDECL calling convention should pass all arguments on the stack
It does not do that in all (or even most) cases. The CDECL calling
convention passes arguments according to what the platform's ABI prescribes.
For Windows/x64, that is documented here:
https://learn.microsoft.com/en-us/cpp/build/x64-calling-convention?view=msvc-170#varargs
Jonas
More information about the fpc-pascal
mailing list