[Haskell-cafe] what is a stack overflow?
Tomasz Zielonka
tomasz.zielonka at gmail.com
Wed Jan 26 08:31:12 EST 2005
On Wed, Jan 26, 2005 at 01:04:29PM -0000, Simon Marlow wrote:
> On 25 January 2005 16:04, S. Alexander Jacobson wrote:
> > Is there a way to profile stack usage using GHCi
> > (without compiling) to find the problem?
>
> +RTS -xt -RTS will include the stack in a heap profile. See
>
> http://www.haskell.org/ghc/docs/latest/html/users_guide/prof-heap.html
>
> It will show you the size of the stack over time, but not the contents
> of the stack.
BTW, has anyone considered making a stackless Haskell implementation?
For example, SML compiler SML/NJ allocates "stack" frames on the heap.
Best regards,
Tomasz
More information about the Haskell-Cafe
mailing list