| | |
Summary: Catenation and Specialization
for Tcl Virtual Machine Performance
Benjamin Vitale
bv @ cs.toronto.edu
Department of Computer Science
Tarek S. Abdelrahman
tsa @ eecg.toronto.edu
Edward S. Rogers Sr. Department of Electrical
and Computer Engineering
University of Toronto
Toronto, M5S 3G4 Canada
ABSTRACT
We present techniques for eliminating dispatch overhead in a
virtual machine interpreter using a lightweight just-in-time
native-code compilation. In the context of the Tcl VM, we
convert bytecodes to native Sparc code, by concatenating
the native instructions used by the VM to implement each
bytecode instruction. We thus eliminate the dispatch loop.
Furthermore, immediate arguments of bytecode instructions
are substituted into the native code using runtime special-
|