[Haskell-cafe] x86 code generation going wrong?

Donald Bruce Stewart dons at cse.unsw.edu.au
Sun Jan 8 19:15:51 EST 2006


bmaxa:
> 
> 
> 
> >From: Chris Kuklewicz <haskell at list.mightyreason.com>
> >To: bts at alum.mit.edu, Haskell Cafe <haskell-cafe at haskell.org>
> >Subject: Re: [Haskell-cafe] x86 code generation going wrong?
> >Date: Sun, 08 Jan 2006 20:33:57 +0000
> >
> >Brian Sniffen wrote:
> >> The first couldn't even complete on my 2.26 GHz Celeron! It's only got
> >> 512 MB of RAM,  which may be part of the problem.
> >
> >I should not leak memory but it may be an optimization problem.
> >
> >Try explicitly using "ghc -O2 -funbox-strict-fields".
> >
> On p4. 2.4 ghz 512mb first example takes about 2.5 mb of ram.
> I've compiled explicitelly with -O2, because without optimisations it takes
> ridicilously large amount of RAM.
> I've changed {# OPTIONS to OPTIONS_GHC as Bulat sugested
> but still no effect. Options have to be specified on command line in
> order to work.

Ensure that the {-# OPTIONS ... #-} lines is the *first* line of the
file, and that no comments precede it.

-- Don


More information about the Haskell-Cafe mailing list