[Haskell-cafe] Stack, Heap and GHC

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Dec 15 16:51:02 EST 2006

Hello Felix,

Thursday, December 14, 2006, 6:00:53 PM, you wrote:

> The program isn't that well written so the overflow did not surprise me,
> I expected that it might run out of memory. What did surprise me was the
> *stack* overflow. I do not use recursion in my program except for a
> couple of fold operations over very large lists.

surprise: some fold variants are not tail recursive :)

> 3) I tried using +RTS -K<size> as suggested, but these options do not
> seem to be passed through if I use --make. How can I use both, these
> compilation flags and --make?

you should use it as argument to your compiled program. RTS means
*run-time* system, after all :)

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list