Recent

Author Topic: [SOLVED]Do we will have a general calling convention for pascal?  (Read 1753 times)

TYDQ

  • Full Member
  • ***
  • Posts: 102
Re: Do we will have a general calling convention for pascal?
« Reply #15 on: August 14, 2024, 11:47:21 am »
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?

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).
Is it vaild use MS_ABI_default in non-windows targets when compiling?That was from our Free Pascal wiki.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5644
  • Compiler Developer
Re: Do we will have a general calling convention for pascal?
« Reply #16 on: August 15, 2024, 07:56:52 pm »
Is 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.

TYDQ

  • Full Member
  • ***
  • Posts: 102
Re: Do we will have a general calling convention for pascal?
« Reply #17 on: August 16, 2024, 03:20:29 am »
Is 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.
Thank you.

 

TinyPortal © 2005-2018