[fpc-devel] Rules about record types and internal storage

Sven Barth pascaldragon at googlemail.com
Fri Apr 3 00:42:57 CEST 2020


J. Gareth Moreton <gareth at moreton-family.com> schrieb am Do., 2. Apr. 2020,
22:33:

> Hi Jonas,
>
> I brought that up because Florian once asked about just doing everything
> as vectorcall on Win64 because the calling convention, by and large, is
> a compatible extension to its default one.  I think issues of
> compatibility and third-party interfacing makes it not the best idea
> unless there's a way to override it (which you can do by specifying the
> 'ms_abi_default' directive, even though that's not the nicest name to
> remember!)
>

I don't think it's a good idea to change the default calling convention.
We'll get many bug reports about third party libraries then even if it can
be changed. The potential performance gain is not worth it. And those that
want to really optimize their code can do so by adjusting the calling
convention either per function or using $calling.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20200403/99a1325b/attachment.html>


More information about the fpc-devel mailing list