[Haskell-cafe] x86 code generation going wrong?
haskell at list.mightyreason.com
Sun Jan 8 15:33:57 EST 2006
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 at alum.mit.edu or brian.sniffen at gmail.com
More information about the Haskell-Cafe