[fpc-devel] Rules about record types and internal storage
J. Gareth Moreton
gareth at moreton-family.com
Fri Apr 3 01:10:57 CEST 2020
Agreed. Sometimes it is a question of how much should be left to the
compiler and how much should be left to the programmer when it comes to
optimisation.
Gareth aka. Kit
On 02/04/2020 23:42, Sven Barth via fpc-devel wrote:
> J. Gareth Moreton <gareth at moreton-family.com
> <mailto: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
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20200403/6369a7c0/attachment.html>
More information about the fpc-devel
mailing list