Problems with dmd inlining

Craig Black craigblack2 at cox.net
Mon Dec 13 09:22:03 PST 2010


"Walter Bright" <newshound2 at digitalmars.com> wrote in message 
news:ie4mit$m2r$1 at digitalmars.com...
> Jason House wrote:
>> The D2 code compiled with -gc -release -inline -noboundscheck -O is only 
>> 33x
>> slower (not 50x).  My test this evening was with dmd 2.047 and g++ 4.4.5.
>
> I see the problem. You need to compile with the
>
>    -winbenchmark
>
> switch. This switch enables sophisticated optimizer technology, capable of 
> recognizing benchmark code and replacing it with:
>
>    printf("1899 primes\n");

I don't need a -winbenchmark switch since I already have an easy button.

-Craig 



More information about the Digitalmars-d mailing list