At 16:55 -0500 2000/07/06, Franklyn A. Turbak wrote:
>Is it possible to increase the size of the control stack in HUGS? For
>instance, on my machine foldr (+) 0 [1..n] runs out of control stack at n
>= 3991:
>
>       Prelude> foldr (+) 0 [1..3990]
>       7962045
>
>       Prelude> foldr (+) 0 [1..3991]
>       ERROR: Control stack overflow
>
>The HUGS documentation indicates how to increase heap size but not how to
>increase stack size. Is there a way of doing this?

This depends on the implementation on each platform. On the MacOS version
we implemented such a feature. (If I do not mix up the names: The control
stack I take to be is the same as the parameter stack which is the same as
the C-stack.)

  Hans Aberg
                  * Email: Hans Aberg <mailto:[EMAIL PROTECTED]>
                  * Home Page: <http://www.matematik.su.se/~haberg/>
                  * AMS member listing: <http://www.ams.org/cml/>



Reply via email to