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 <gar...@moreton-family.com <mailto:gar...@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@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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to