[Issue 11859] New: Slow compilation with -O with dmd

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 2 08:44:44 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11859

           Summary: Slow compilation with -O with dmd
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2014-01-02 08:44:38 PST ---
Created an attachment (id=1309)
Program that produces a textual representation of the Mandelbrot set.

The very C-style program in attach compiles in less than 0.4 seconds with "dmd
-release -noboundscheck" (dmd 2.064), but it takes more than one hour (I have
measured about 68 minutes on the same PC) if I add the "-O" switch.

The same program with ldc2 "ldmd2 -release -noboundscheck" compiles in about
1.9 seconds, and in 6.9 seconds if I add "-O". (and the runtime of this
ldc2-compile is almost half as the optimized dmd-compile).

A very similar C program is compiled by GCC 4.8 with "gcc -O3" in about 6.7
seconds.

So I think there is some problem in dmd with -O.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list