Optimisation flags at -O0

Chris Heller hellertime at gmail.com
Mon Jan 6 02:43:46 UTC 2014


I wanted to understand better what `-fspec-constr` does.

So I compiled the User Guide example with `-O0 -fspec-constr` to isolate
the effects of call-pattern specialization, and nothing else (I used
ghc-core to pretty-print the resulting Core syntax).

It appears I get the same output wether I use `-fspec-constr` or not.

Does this mean that compiling with `-O0` even explicitly enabled
optimizations are turned off?

If that is the case, how does one test an isolated optimization?

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140105/316787ee/attachment.html>


More information about the ghc-devs mailing list