Faster, GHC, and floating point.

JP Bernardy jyp_7 at
Sat Oct 18 05:32:06 EDT 2003

--- ajb at wrote:
> Quoting JP Bernardy <jyp_7 at>:
> > 1. Use -fexcess-precision, unless you really need
> the
> > exact (lesser) precision. Otherwise each
> intermediate
> > result is spilled in memory. This hurts!
> Yes, but it does avoid incorrect numerics, which
> hurts fewer times, but
> when it does, it hurts a LOT more. :-)

With an SSE processor, it is possible to have both
speed and exact precision, passing
-optc-march=pentium4 -optc-mfpmath=sse to ghc, in
addition to -fexcess-precision.

BTW, as requested, I've contributed a page about this
to the haskell wiki.


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

More information about the Glasgow-haskell-users mailing list