Bad codegen for ARM (and maybe others) when optimizing

Kai Nacke via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Feb 9 22:07:52 PST 2015


On Sunday, 8 February 2015 at 21:59:02 UTC, Dan Olson wrote:
> I am working on it. After reading the D ABI 
> http://dlang.org/abi.html
> which says:
>
> Function Calling Conventions
> The extern (C) and extern (D) calling convention matches the C 
> calling
> convention used by the supported C compiler on the host system.
>
> Should I follow that? I noticed the default abi.cpp
> TargetABI::callingConv() returns fastcc for D calling 
> convention and
> instead of ccc. I am wondering if I should cripple LDC for iOS 
> to follow
> this rule. It seems to me, that when D is calling D, function 
> calls
> should be as efficient as possible.

Hi Dan!

I prefer if you follow the D ABI. My impression is that the 
difference between fastcc and the standard calling convention is 
not really great, at least on non-x86 systems.

Regards,
Kai


More information about the digitalmars-d-ldc mailing list