Re: [Sablevm-user] SableVM question
Brought to you by:
egagnon
From: Etienne M. G. <eg...@j-...> - 2000-08-29 15:07:02
|
Marcel Ammerlaan wrote: > Ok. I've retested it and the results are much better now for the goto case > (around 3 times faster) with a real-life example (e.g. newtest1 && newtest2). Ah! This is much more in line with the material that can be found on "threaded interpretation" the literature. > I will get my own VM up & running again and use that as a testbed instead > of simple programs so the compiler won't fool me again:) > > I hate assembly and usually avoid it but in a case like this I should have > checked what GCC did to the code... > > > I might still be wrong, so please continue testing and keep us updated > > on your findings. > > I will (for now I'm focussing on the pre-interpretation bit as I've got > better results when skipping this part and using a lookup table. I will > investigate:) Do not forget that the pre-interpretation phase is a linear phase. While running a real interpreter, you usually have many loops and recursion that will make the pre-interpretation phase overhead pretty insignificant. This phase does nothing as complex as a non-naive JIT would do. Etienne -- ---------------------------------------------------------------------- Etienne M. Gagnon, M.Sc. e-mail: eg...@j-... Author of SableVM: http://www.sablevm.org/ ---------------------------------------------------------------------- |