[Vm-dev] Direct object pointers vs indirect ones pros and cons

Igor Stasenko siguctua at gmail.com
Fri Nov 12 10:56:56 UTC 2010


On 12 November 2010 11:59, Stefan Marr <squeak at stefan-marr.de> wrote:
>
> Hi Igor:
>
> On 12 Nov 2010, at 10:32, Igor Stasenko wrote:
>
>> I would like to hear your opinion on that in context: what if you
>> would design a VM from scratch,
>> and having a direct access to high-optimization compiler/jit. What
>> would be your choice?
> I don't think you will get a satisfying answer to that question.
> It might be that on certain processors the caches are big enough to actually hide the overhead of an object table in such a scenario.
>
> But, by definition, caches are always to small.
>
> I think we have still the source code of David's version of the RoarVM lying around that does not use an object table. With 'a bit of work' it would be possible to measure that overhead for our interpreter for a single core. So, if you feel like it, I could give you a hand here and there ;)
>
well, if that's not too much work to run a simple benchmarks :)

> Best regards
> Stefan
>
>
> --
> Stefan Marr
> Software Languages Lab
> Vrije Universiteit Brussel
> Pleinlaan 2 / B-1050 Brussels / Belgium
> http://soft.vub.ac.be/~smarr
> Phone: +32 2 629 2974
> Fax:   +32 2 629 3525
>
>



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list