C fastcall convention in FPC ? lazarus / 67-Windows ---------------------------------------------------------------------- 440bx · 2021-08-19 22:21 Hello, I think I know the answer to the question I'm about to ask but, figured I'd ask in case I missed something. I would like to use this API: Code: C  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i PSLIST_ENTRY  FASTCALL InterlockedPushListSList(  _Inout_ PSLIST_HEADER ListHead,  _Inout_ PSLIST_ENTRY  List,  _Inout_ PSLIST_ENTRY  ListEnd,  _In_    ULONG         Count);The problem is, it uses MS C's fastcall convention and I don't know if there is a way to tell FPC to use that convention. That's my question: is there a way to tell FPC to use MS C's fastcall convention when calling a function ? Thank you for your help. ---------------------------------------------------------------------- skalogryz · 2021-08-20 00:03 i guess you'll need to create an asm wrapper to make the call. but if you target 64-bit you don't need to do anything. ---------------------------------------------------------------------- 440bx · 2021-08-20 00:34 Quote from: skalogryz on August 20, 2021, 02:03:05 ami guess you'll need to create an asm wrapper to make the call. but if you target 64-bit you don't need to do anything. That's what I thought.  Thank you Skalogryz ---------------------------------------------------------------------- PascalDragon · 2021-08-26 13:42 Quote from: 440bx on August 20, 2021, 12:21:39 amThat's my question: is there a way to tell FPC to use MS C's fastcall convention when calling a function ? FPC does not support Microsoft's fastcall calling convention. Patches welcome.