Increasing stack size

Simon Marlow
Mon, 11 Feb 2002 13:00:58 -0000

> I'm having trouble adjusting the stack size, viz:
>   + cacheprof +RTS -K8M -RTS gcc -I. -I. -c /tmp/ghc5664.s -o=20
> PrelTup.c_o
>   Stack space overflow: current size 1048576 bytes.
>   Use `+RTS -Ksize' to increase it.

The -K option definitely works, at least on simple examples I've tried =
here.  It looks like the option somehow isn't getting through to the =
compiled program; is it perhaps being gobbled up by an intermediate =
stage (Makefile, script, whatever)?