On Monday, 26 March 2018 at 18:47:17 UTC, Nordlöw wrote:

Yes I am, thanks, via the dub spec

buildType "release-nobounds" {
          dflags "-mcpu=native" "-O3"
buildOptions "releaseMode" "optimize" "noBoundsCheck" "inline"
}

I didn't measure any significant difference between -O and -O3.

Is each optimization level `x` in `-Ox` defined in the same way for clang and ldc? If so, where's the best documentation for it?

https://wiki.dlang.org/Using_LDC

-O is equivalent to -O3

Reply via email to