Stack space overflow after optimization
maeder at tzi.de
Wed Mar 17 17:19:40 EST 2004
my program throws
Stack space overflow: current size 1048576 bytes.
Use `+RTS -Ksize' to increase it.
only when translated with "-O". Is it possible that the next release of
ghc uses a higher stack size at least when the "-O" flag is set? (Only
to reduce the likelyhood that our users need to supply RTS flags.)
Maybe it is even possible to add a ghc flag that allows to set the
default Ksize of the generated programs.
Someone told me to link in an additional header file, but maybe you can
supply a more convienent solution.
More information about the Glasgow-haskell-users