Hi,
As I understood my reason for doing this was that many closures point to the same code fragment
and If we compile one of those closures the others will not benefit. So therefore I stored the native
code at the beginning of the rtl code fragment and used this mechanism. I have not gotten this nailed
though because I'm unsure how to treat this data correctly w.r.t. GC. Currently I just keep a reference
to the native code to prevent garbage collection if I'm not miss-remember. But perhaps I'm missing
something in this argument I would be glad to be wrong in this case :-). Of cause if we compile the
module directly to native code this will be a non issue and I completely agree with your approach.
Cheers!
Stefan