
Stack space overflow: current size 8388608 bytes. Use `+RTS -Ksize -RTS' to increase it. ====================== Couldn't find much on the man or info pages. Example please, say double it (16000000) for starters. Michael

./myProgram +RTS -K16000000
If that gives an error, you're program was probably compiled without
support for setting RTS options from the command line.
Recompile with -rtsopts.
Then the above should work
On Sun, Feb 5, 2012 at 8:16 PM, Michael Rice
Stack space overflow: current size 8388608 bytes. Use `+RTS -Ksize -RTS' to increase it.
======================
Couldn't find much on the man or info pages. Example please, say double it (16000000) for starters.
Michael
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I'm using
ghc --make...
-rtsopts seems to be a link directive.
The GHC docs seem to be project oriented. What's the two step process to
compile and link a simple .hs file?
ghc source.hs (to compile)
link step?
Michael
On Sun, Feb 5, 2012 at 2:21 PM, Mathijs Kwik
./myProgram +RTS -K16000000
If that gives an error, you're program was probably compiled without support for setting RTS options from the command line. Recompile with -rtsopts. Then the above should work
On Sun, Feb 5, 2012 at 8:16 PM, Michael Rice
wrote: Stack space overflow: current size 8388608 bytes. Use `+RTS -Ksize -RTS' to increase it.
======================
Couldn't find much on the man or info pages. Example please, say double it (16000000) for starters.
Michael
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

No, you supply -rtsopts along with --make. Actually --make is just a
shorthand for a few other options, you can see which with --verbose. See
the documentation too.
One important thing though: very often stack overflows come from bad code.
See the wiki for more info:
http://www.haskell.org/haskellwiki/Stack_overflow
Best regards,
Krzysztof Skrzętnicki
On Sun, Feb 5, 2012 at 20:50, Michael Rice
I'm using ghc --make...
-rtsopts seems to be a link directive.
The GHC docs seem to be project oriented. What's the two step process to compile and link a simple .hs file?
ghc source.hs (to compile)
link step?
Michael
On Sun, Feb 5, 2012 at 2:21 PM, Mathijs Kwik
wrote: ./myProgram +RTS -K16000000
If that gives an error, you're program was probably compiled without support for setting RTS options from the command line. Recompile with -rtsopts. Then the above should work
On Sun, Feb 5, 2012 at 8:16 PM, Michael Rice
wrote: Stack space overflow: current size 8388608 bytes. Use `+RTS -Ksize -RTS' to increase it.
======================
Couldn't find much on the man or info pages. Example please, say double it (16000000) for starters.
Michael
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I had tried -rtsopts in a few spots in the command line, both with and
without --make, seemingly with no effect .
There was indeed a code problem, a function applied to an expression that
should have been in parens. Shoulda known better.
Thanks, all.
Michael
2012/2/5 Krzysztof Skrzętnicki
No, you supply -rtsopts along with --make. Actually --make is just a shorthand for a few other options, you can see which with --verbose. See the documentation too.
One important thing though: very often stack overflows come from bad code. See the wiki for more info: http://www.haskell.org/haskellwiki/Stack_overflow
Best regards, Krzysztof Skrzętnicki
On Sun, Feb 5, 2012 at 20:50, Michael Rice
wrote: I'm using ghc --make...
-rtsopts seems to be a link directive.
The GHC docs seem to be project oriented. What's the two step process to compile and link a simple .hs file?
ghc source.hs (to compile)
link step?
Michael
On Sun, Feb 5, 2012 at 2:21 PM, Mathijs Kwik
wrote: ./myProgram +RTS -K16000000
If that gives an error, you're program was probably compiled without support for setting RTS options from the command line. Recompile with -rtsopts. Then the above should work
On Sun, Feb 5, 2012 at 8:16 PM, Michael Rice
wrote: Stack space overflow: current size 8388608 bytes. Use `+RTS -Ksize -RTS' to increase it.
======================
Couldn't find much on the man or info pages. Example please, say double it (16000000) for starters.
Michael
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Krzysztof Skrzętnicki
-
Mathijs Kwik
-
Michael Rice