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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to