Serge D. Mechveliani mechvel at botik.ru
Mon Oct 11 00:37:27 EDT 2004

Dear GHC developers,

I am not sure but have such an impression that the  -K  option
(for the stack size) appears and disappears between the GHC
ghc-6.2.2-September-26  requires -K to be set independently of -M
(when the stack is exhausted).

Is not this more nice and flexible to take from the given memory as 
much stack as it is needed, without asking the user?

It is natural for the user think of some abstract Haskell machine
which performs the program in the given memory size (-M..).
Whether the given memory is divided to `stack' and other parts -- 
this is a technical detail, an internal matter of implementation, 
and the user need not to know about stack.

On the other hand, the final report of kind 
                                       "xxx bytes used for stack" 
is helpful (in profiling?), for it helps to detect the unneeded
`laziness' cases and such. 

Im I missing something?

Serge Mechveliani
mechvel at botik.ru

More information about the Glasgow-haskell-users mailing list