Alastair Reid wrote:
> 
> > By the way, if the user needs more space for the program, for
> > control stack, then, is one supposed to intrude into  prelude.h ?
> 
> One is supposed to wait for the STG-Hugs release.  :-)

Hugs uses the C stack during evaluation. It is this stack that
can fill up, and cause the program to fail, in the same way that
a C program might fail on deep recursion. Changing the size of
the stack in very OS specific. On Windows you can set a field
in the .exe file that tells the OS how big the stack should be,
for example.

The great news is that STG Hugs shares evaluation technology with
GHC. It does not use the C stack, so we can allocate more stack
on the fly if needed. So by waiting for STG-Hugs, you'll have
this flexability. If you want more stack size, then you need
to get out an OS manual and C compiler documentation, and figure
out the specifics for your combination.

Hope this helps,

Andy Gill

Reply via email to