* * *

Author Topic: Any support for "vectorcall" under Win64?  (Read 1457 times)


  • Jr. Member
  • **
  • Posts: 71
Any support for "vectorcall" under Win64?
« on: April 12, 2016, 09:29:50 pm »
I don't know whether to call this a feature request or asking for an answer in regards to what Free Pascal's implementation is...

Is there a means to request that a function be compiled under "vectorcall" rules when the target is x86-64 under Win64?  That is, https://msdn.microsoft.com/en-gb/library/dn375768.aspx?f=255&MSPPError=-2147217396.

I have a number of assembly language routines that are optimised to use SSE and AVX, but I still have to load input vectors into the XMM registers and store them back in memory afterwards, only to load them again for the next function.


  • Hero Member
  • *****
  • Posts: 5762
Re: Any support for "vectorcall" under Win64?
« Reply #1 on: May 31, 2016, 02:06:42 pm »
For FPC -Sv is the option, but also select a suitable FPU. (SSE(X), AVX, AVX2)
recommends {$macro on}{$define Silly:=ObjFpc}



Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus