Re: [Haskell-cafe] x86 code generation going wrong?

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".
Stack space overflow: current size 1048576 bytes. Use `+RTS -Ksize' to increase it. ./test1 < sum-file-test-input 25.33s user 2.89s system 18% cpu 2:32.02 total
./test2 < sum-file-test-input 4.79s user 0.20s system 94% cpu 5.276 total
./test3 < sum-file-test-input 4.46s user 0.14s system 99% cpu 4.623 total
-- Brian T. Sniffen bts@alum.mit.edu or brian.sniffen@gmail.com http://www.evenmere.org/~bts

From: Chris Kuklewicz
To: bts@alum.mit.edu, Haskell Cafe 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. Greetings, Bane. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

bmaxa:
From: Chris Kuklewicz
To: bts@alum.mit.edu, Haskell Cafe 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

From: dons@cse.unsw.edu.au (Donald Bruce Stewart) To: Branimir Maksimovic
CC: haskell@list.mightyreason.com, bts@alum.mit.edu,haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] x86 code generation going wrong? Date: Mon, 9 Jan 2006 11:15:51 +1100 bmaxa:
From: Chris Kuklewicz
To: bts@alum.mit.edu, Haskell Cafe 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.
Aaah, I didn't knew that. Now this works, thanks! Greetings, Bane. _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
participants (3)
-
Branimir Maksimovic
-
Chris Kuklewicz
-
dons@cse.unsw.edu.au