Will the D GC be awesome?

Alex Rønne Petersen alex at lycus.org
Thu Oct 4 06:26:08 PDT 2012


On 04-10-2012 15:06, Jacob Carlborg wrote:
> On 2012-10-04 14:36, Alex Rønne Petersen wrote:
>
>> Presumably speed; returning small structs in registers will be faster
>> than doing so on the stack.
>
> Are sturcts currently always returned on the stack?

As always, it depends on the arch, but on 32-bit x86: Yes. On 64-bit 
x86: Yes, if the struct size is larger than 8 bytes (otherwise it's 
returned in RAX).

>
>> But I don't agree that the vast complexity of altering well-established
>> ABIs for multiple architectures is worth that speed gain.
>
> I agree.
>

-- 
Alex Rønne Petersen
alex at lycus.org
http://lycus.org


More information about the Digitalmars-d mailing list