Getting rid of HEAP_ALLOCED
Simon Marlow
marlowsd at gmail.com
Tue Aug 27 22:43:05 CEST 2013
On 27 Aug 2013 19:59, "Edward Z. Yang" <ezyang at cs.stanford.edu> wrote:
>
> Excerpts from Simon Marlow's message of Sun Aug 25 12:56:06 -0700 2013:
> > You can arrange that all the indirections end up next to each other by
> > putting them in a special section. Then you can traverse the contents
> > of the section so long as you have a symbol at the beginning and the
> > end, or something like that. There are other ways to do it, such as
> > having the module initialisation code register something with the RTS.
>
> If I understand correctly, this is not true if you do something like
> dynamic linking, in which case each dynamic library will have its
> own indirection region. So in that case, every library should register
> its boundary symbols with the RTS.
Yes, sorry I forgot to mention that.
Alternatively having each module register its table might be easier.
Cheers
Simon
> Edward
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130827/4704e3e7/attachment.htm>
More information about the ghc-devs
mailing list