Quote from: TYDQ on August 12, 2024, 04:18:06 amSo does calling convention winapi in x86_64 will be ignored if I try to force the code to winapi calling convention in x86_64?The winapi calling convention will select stdcall on all Windows-like targets and cdecl on all other targets. On most targets stdcall and cdecl are the same and simply mean the default operating system calling convention (and more often than not the only supported calling convention).
So does calling convention winapi in x86_64 will be ignored if I try to force the code to winapi calling convention in x86_64?
Is it vaild use MS_ABI_default in non-windows targets when compiling?That was from our Free Pascal wiki.
Quote from: TYDQ on August 14, 2024, 11:47:21 amIs it vaild use MS_ABI_default in non-windows targets when compiling?That was from our Free Pascal wiki.It is valid to use, but it will only have an effect on x86_64-based targets, because the calling convention is only relevant there.