D postmortem

Walter Bright newshound1 at digitalmars.com
Tue Jun 24 13:25:00 PDT 2008


bearophile wrote:
> And it contains this: WalterBright:
>> I'm not sure what you're encountering with the struct return code.
>> The D compiler does the named value return optimization, the same
>> as C++. It will also return small structs in registers, as C++
>> compilers do. If you could email me (or put on bugzilla) an example
>> of the problem, I can comment more.<
> 
> Stuct/classes usage in DMD is much slower than the same performed in
> C++ with MinGW.

Can you look at the asm output and identify a case where it is less 
efficient?



More information about the Digitalmars-d mailing list