The invention relates to a computer program interpreter and a method for
the same, using statistics to group (SR89, SR17 . . . SR6; SR4, SR34 . .
. SR16) frequently used service routines (SR) in the same program
function and to control encoding of instructions. Frequently used service
routines are assigned shorter codes thus enhancing the performance of a
simulator or emulator.