
5 Jun
2007
5 Jun
'07
7:33 a.m.
Grzegorz schrieb:
On 6/4/07, Christian Maeder
wrote: But it goes through with increased stack space!
$ ./foo < okok +RTS -K100m 58386
So this is quite normal behaviour. Profiling may need more stack space.
The question is why this simple program would need so much stack space. I thought that that mostly happend in Haskell with badly written recursive functions?
The file "okok" has 3816117 bytes and "-K11m" is sufficient ("-K10m" is not). That's just above the amount of stack size used without complaining (8388608 bytes) when profiling is switched off. C.