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

Igor Stasenko siguctua at gmail.com
Thu Dec 23 21:14:31 UTC 2010

On 23 December 2010 22:04, Andreas Raab <andreas.raab at gmx.de> wrote:
> On 12/23/2010 12:47 PM, Igor Stasenko wrote:
>> it is possible (if someone provide a code), but i wonder why do you
>> need such extra loops?
>> It will give you nothing.
> Unless the platform does not allow making memory regions executable, as on,
> say, iOS. In which case the ability to generate code into a shared lib
> becomes suddenly very valuable.
Unless there is a restrictions imposed which do not allow to use
dynamically generated code,
which suddenly makes all efforts worthless. :)

> Cheers,
>  - Andreas
>> 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.

More information about the Vm-dev mailing list