> Let, for example, all the .o modules were prepared, and we
> command
> ghci ... +RTS -Mxxm -RTS
> ...
>Loading package std ... linking ... done.
> Prelude> :l BPrelude
> ...
>
> and then try to find sum [1..n].
> In my experiment
> xx = 7
To my request
>> I cannot find where it is explained the memory distribution used by
>> ghci.
>> [..]
Simon Marlow writes
> Interpreted code lives in the heap, and is garbage collected as normal.
> Object code is loaded outside the heap. It takes up real memory
> in the process, because th