RE: [Haskell-cafe] GHC ignores RTS options

On 16 November 2005 08:12, Tomasz Zielonka wrote:
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?
Already possible, see: http://www.haskell.org/ghc/docs/latest/html/users_guide/runtime-control. html#rts-hooks Admittedly it's a bit more fiddly than a command-line flag to GHC, though. Cheers, Simon

On Wed, Nov 16, 2005 at 01:09:07PM -0000, Simon Marlow wrote:
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?
Already possible, see:
http://www.haskell.org/ghc/docs/latest/html/users_guide/runtime-control. html#rts-hooks
I was aware of this, and I should write about it.
Admittedly it's a bit more fiddly than a command-line flag to GHC, though.
And because of this I wrote that it would be nice if it was easier :-) I've bitten several times by the default values of RTS options, especially the stack size limit (-K). But it was always easier to set GHCRTS or use +RTS -RTS, so I never used the rts-hooks. Do you think I could do this? I am not sure how difficult it would be. Best regards Tomasz
participants (2)
-
Simon Marlow
-
Tomasz Zielonka