increasing control stack size?

Dima Pasechnik d.pasechnik@twi.tudelft.nl
09 Nov 2000 14:55:04 +0000


As I was getting "Control stack overflow" while
attempting to generate large (>1MB) data files using Hugs,
I recompiled Hugs with 10-fold increased value of the corresponding
parameter (was 16K). Then I was able to do the necessary computations.
However, I wonder if it was safe to so, i.e. that this change
didn't break functionality of the Hugs system.

Hugs documentation sounds as if one gets "Control stack overflow" then
it surely must be an infinite recursion; while in my case it's just
concatenation of long (>20K) strings. I guess it would've been nice if
documentation said something more about that, and explained ways of
increasing stack size. 

IMHO, some internal Hugs part uses the stack (thus, something that is
not controllable by the command line options) for data that ought to
be held in the heap (whose size is controllable by command line
options)...

Best regards,
Dmitrii Pasechnik
http://ssor.twi.tudelft.nl/~dima/