On Tue, Jan 29, 2008 at 07:38:24PM +0000, Neil Mitchell wrote: > > A lot also depends on compiler (and associated rts), such as whether > > or not it translates to CPS, thereby in effect building a "stack" (in > > all but name) on the heap. > > If you burn a lot of heap, for not much gain, that's still a bug, > albeit one which large limits might be able to paper over for a short > amount of time. Is the GHC stack not stored on the heap? I thought it > was. I know the Hugs stack is stored on the stack, and the Yhc one > isn't.
GHC's stacks are stored in the heap, but as large continuous objects. GHC does not use the linked lists typical of CPS implementations, and (as of the Great RTS Cleanout of 4.00) does not even have a chunked stack. (In case it proves relevant the stack is not pinned - GHC's GC has special code to fix up relocated stacks) Stefan
signature.asc
Description: Digital signature
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe