Method and apparatus for resolving data references in generated code
AssigneeSun Microsystems, Inc.
InventorJames Gosling
Life of this patent
Estimating the term…
Loading patent…
AssigneeSun Microsystems, Inc.
InventorJames Gosling
Estimating the term…
A hybrid compiler-interpreter comprising a compiler for “compiling” source program code, and an interpreter for interpreting the “compiled” code, is provided to a computer system. The compiler comprises a code generator that generates code in intermediate form with data references made on a symbolic basis. The interpreter comprises a main interpretation routine, and two data reference handling routines, a dynamic field reference routine for handling symbolic references, and a static field reference routine for handling numeric references. The dynamic field reference routine, when invoked, resolves a symbolic reference and rewrites the symbolic reference into a numeric reference. After re-writing, the dynamic field reference routine returns to the main interpretation routine without advancing program execution to the next instruction, thereby allowing the rewritten instruction with numeric reference to be reexecuted. The static field reference routine, when invoked, obtain data for the program from a data object based on the numeric reference. After obtaining data, the static field reference routine advances program execution to the next instruction before returning to the interpretation routine. The main interpretation routine selectively invokes the two data reference handling routines depending on whether the data reference in an interaction in a symbolic or a numeric reference.
In a computer system comprising a program in source code form, a method for generating executable code for said program and resolving data references in said generated code, said method comprising the steps of:
In a computer system comprising a program in source code form, an apparatus for generating executable code for said program and resolving data references in said generated code, said apparatus comprising:
An apparatus comprising:
A computer-readable medium containing instructions for controlling a data processing system to perform a method for interpreting intermediate form object code comprised of instructions, certain of said instructions containing one or more symbolic references, said method comprising the steps of:
A computer-implemented method for executing instructions, certain of said instructions containing one or more symbolic references, said method comprising the steps of:
In a computer system comprising a program, a method for executing said program comprising the steps of:
A computer-implemented method for executing program operations, each operation being comprised of a set of instructions, certain of said instructions containing one or more symbolic references, said method comprising the steps of:
A memory for use in executing a program by a processor, the memory comprising:
A computer-implemented method comprising:
A data processing system, comprising:
An apparatus comprising:
A computer-implemented method, comprising:
A computer-implemented method for executing a program comprised of bytecodes, the method comprising:
A data processing system, comprising:
A computer program product containing instructions for causing a computer to perform a method for executing a program comprised of bytecodes, the method comprising:
A computer-implemented method comprising:
A data processing system, comprising:
A computer program product containing instructions for causing a computer to perform a method, the method comprising:
A computer-implemented method comprising:
A data processing system, comprising:
A computer program product containing control instructions for causing a computer to perform a method, the method comprising:
A computer-implemented method, comprising:
A data processing system, comprising:
A computer program product containing control instructions for causing a computer to perform a method, the method comprising:
A computer-implemented method for executing a program comprised of bytecodes, the method comprising:
A data processing system, comprising:
A computer program product containing instructions for causing a computer to perform a method for executing a program comprised of bytecodes, the method comprising:
A computer-implemented method comprising:
A data processing system, comprising:
A computer program product containing control instructions for causing a computer to perform a method, the method comprising:
Dependencies are inferred from the claim text.