Franklyn A. Turbak <[EMAIL PROTECTED]> writes on July 6 2000 


> 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: 
> [..]

I asked this question long ago. Noone responded.
I have discovered the following trick.
Find                                   prelude.h

in the Hugs source and set there the appropriate upper values  xxxxx
in the lines
             #define NUM_STACK   Pick(.., .., xxxxx)
             #define NUM_ADDRS   Pick(.., .., xxxxx)

- the second is for the program space.
Then, do `make install'.
Thus, I believe setting  48000  instead of  16000  for  xxxxx  in 
STACK  increases the stack 3 times.

It works so far, but I am not sure that this is correct.
For example, what if one sets  48001, 12345600000 ?  

------------------
Sergey Mechveliani
[EMAIL PROTECTED]



Reply via email to