On Sun, 2011-03-06 at 09:46 +0300, Nikitiskiy Dmitriy wrote: > As I see, some examples compilled with similar flags: > > /usr/local/src/ghc-7.0.2/bin/ghc --make -O2 -fglasgow-exts -rtsopts > -funbox-strict-fields -fexcess-precision -fvia-c -optc-O3 > spectralnorm.ghc-4.hs -o spectralnorm.ghc-4.ghc_run > > Does this flags enable LLVM optimizations in 7.0.2?
No, that uses C language generation and then passes the resulting C through gcc. To go through LLVM instead, you need to pass -fllvm instead of -fvia-c. Then the -optc-O3 will not be valid; instead, you'll want to play around with flags to -oplo and -optlc to pass them to the LLVM stages. -- Chris _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
