[Vm-dev] Mars, stuck on callbacks (again)... need opinions

Denis Kudriashov dionisiydk at gmail.com
Thu Dec 23 21:04:29 UTC 2010


I just think about a way to use NB on platform that permit execution of
dynamicaly generated code

2010/12/23 Igor Stasenko <siguctua at gmail.com>

>
> On 23 December 2010 21:24, Denis Kudriashov <dionisiydk at gmail.com> wrote:
> >
> > Hi,
> >
> > Is it possible to statically save code from NB native methods to platform
> shared library?
> > And if It's true NB can just create shared library on fly and use it.
> >
> it is possible (if someone provide a code), but i wonder why do you
> need such extra loops?
> It will give you nothing. You could generate a native code and put it
> into executable memory region,
> instead of object memory, which could be then used to pass as callback
> address to some external function.
> Actually, if you look how NB callback test implemented - it does
> exactly what i describing.
>
>
> You can always use NB (or just AsmJit) for generating code and putting
> it into static library or file..
> but once it become static it is no longer interesting, because its
> static (yeah.. tautology ;)
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20101224/71987784/attachment.htm


More information about the Vm-dev mailing list