dmd codegen improvements
anonymous via Digitalmars-d
digitalmars-d at puremagic.com
Wed Aug 19 12:39:56 PDT 2015
On Wednesday, 19 August 2015 at 17:30:13 UTC, Walter Bright wrote:
> On 8/19/2015 7:34 AM, anonymous wrote:
>> I have a about 30 lines of numerical code (using real) where
>> the gap is about
>> 200%-300% between ldc/gdc and dmd (linux x86_64). In fact dmd
>> -O etc is at the
>> level of ldc/gdc without any optimizations and dmd without -0
>> is even slower.
>> With double instead of real the gap is about 30%.
> If it's just 30 lines of code, you can put it on bugzilla.
The problem are not the 30 lines + white space but the input file
used in my benchmark. The whole benchmark programm has 115 lines
including empty lines and braces. The input file is 4.8 MB large.
Anyway the raw asm generated by the different compiler may be
helpful to the expert:)
More information about the Digitalmars-d