Simon,

# | A Haskell program of mine regularly runs out of stack space, when dumping
# | thousands of lines to stdout. Doing a +RTS -H16M -RTS on each execution of
# | the program seems to fix it. (Should a program really need this much space,
# | though?)
# 
# Do you mean "-K16m"?  Or do you mean heap space?
# I'm interested in big stacks.

Sorry. I meant -H16M, and *heap* space. With 4 megs of heapspace, the program
consistently produces between 163000 and 164000 characters of output before
giving up with an increase-your-heapspace error message. With 8 megs, it works
much better (although the occasional "bus error" creeps in).

I, erm, think I'll give the hack a miss, though :-) It's not vital - there's
a perl wrapper that calls the program anyway, so the +RTS -H16M -RTS can be
hidden away. A command line option would be nice, however...

Thanks,

Ed

Reply via email to