DMD release compiler flags when building with LDC

Per Nordlöw per.nordlow at
Tue Oct 22 14:02:28 UTC 2019

Have anybody experimented with release compilation flags when 
building dmd with ldc?

I'm currently calling make as

make -f posix.mak \
     DFLAGS="-noboundscheck" \
     ENABLE_LTO=1 \
     HOST_CXX=g++ \

And I measure about a 20-25% drop in runtime compared to the 
standard released version of dmd.

Is profile guided optimization (PGO) worth a try?

More information about the Digitalmars-d mailing list