RE: Help: Stack-overflow and tail-recursive functions

GHCi didn't have any problem even with the original code.
mine didn't either, until I increased the "200" to around "1500"...it's probably OS/memory specific.

On Fri, 20 Jun 2003 07:54:50 -0700
"Hal Daume"
mine didn't either, until I increased the "200" to around "1500"...it's probably OS/memory specific.
Only 600 causes the stack overflow in my environment(FreeBSD, 640MB). Interestingly, on GHCi, the program shows the elements which are constructed from the first row of the matrix, "rests awhile" and then stack overflows (n >= 600) or continues fine (n <= 500). With the improved definition of rmat I wrote in my last mail (Subject: listArray and stack overflow (Re: Help: Stack-overflow and tail-recursive functions)) it runs without both that rest and stack overflow (at least n <= 2000).
participants (2)
-
Hal Daume
-
Koji Nakahara