Sittampalam, Ganesh wrote:
Oh dear. To fix this, I suppose the RTS would have to be able to
keep track of all static initialisers. But it shouldn't otherwise
affect program optimisation.

What would the RTS actually do?

I don't know enough about the RTS to say. I imagine initialisers would have to be marked in object files, so the RTS could link them separately when dynamically loading. The RTS would also keep a list of initialisers in the main program.

--
Ashley Yakeley
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to