
Hello, I wonder whether anybody could advise me how to pass correctly RTS options to ghc? I've tried ghc +RTS -K4M --RTS -O program.hs -o aO.out ghc +RTS -K4M -RTS -O program.hs -o aO.out ghc -O program.hs -o aO.out +RTS -K4M ghc -O program.hs +RTS -K4M --RTS -o aO.out and many others, with other sizes (10M, 12M), but program always(!) stops with: Stack space overflow: current size 8388608 bytes. Use `+RTS -Ksize' to increase it. Even time of execution is always the same and thus the RTS option on stack size is ignored. What can I do so that the option IS taken into account? My GHC version says: ghc --version The Glorious Glasgow Haskell Compilation System, version 6.4.1 Thanks & regards Dusan

On Wed, Nov 16, 2005 at 08:53:18AM +0100, Dusan Kolar wrote:
I wonder whether anybody could advise me how to pass correctly RTS options to ghc? I've tried
You have to pass these options to the program, not to GHC. BTW - it would be nice if it was easier to override the default RTS options when compiling the program. Perhaps a nice task for a newbie GHC developer? Best regards Tomasz
participants (2)
-
Dusan Kolar
-
Tomasz Zielonka