摘要 |
<p>PURPOSE: To provide a hybrid compiler interpreter having the gains of both a compiler and an interpreter. CONSTITUTION: This device is provided with a compiler 42 for 'compiling' a source program code 52, and an interpreter which interprets the 'compiled' code. The compiler 42 generates a code in an intermediate form for operating data reference by symbol reference. On the other hand, in the interpreter, when a dynamic field reference routine is called, the symbol reference is rewritten to numeric value reference, and program execution is returned to a main interpretation routine without being advanced to the next instruction so that the rewritten instruction having the numeric value reference can be re-executed. When a static field reference routine is called, data for the program are obtained from a data object based on the numeric value reference, and the program execution is advanced to the next instruction before returned to the main interpretation routine. The main interpretation routine selectively calls two data reference dealing routine.</p> |