Re: [Sablevm-user] SableVM question
Brought to you by:
egagnon
From: Etienne M. G. <eg...@j-...> - 2000-08-29 02:32:10
|
Hi! Marcel Ammerlaan wrote: > Name: benchmark.tar.bz2 > benchmark.tar.bz2 Type: unspecified type (application/octet-stream) > Encoding: base64 I've looked at your test2.c. You wrote: goto *code_addr[data[i]]; This should have been: goto *datap++; to correspond to your switch based test.c. Mainly, you forgot the bytecode->address pre-interpretation phase. Mainly, you don't have bytecodes anymnore; each bytecode is directly replaced by its address, which is why it is much quicker (no loop, no bound check [included in a switch], etc.) ... I feel much better already;-) Etienne -- ---------------------------------------------------------------------- Etienne M. Gagnon, M.Sc. e-mail: eg...@j-... Author of SableVM: http://www.sablevm.org/ ---------------------------------------------------------------------- |