Method and apparatus for optimized multiprocessing in a safe language
AssigneeSun Microsystems, Inc.
InventorGrzegorz Czajkowski
Life of this patent
Estimating the term…
Abstract
In general, the invention relates to a method for optimized execution of a computer program including detecting a preservable static field in said computer program with a compiler, comprising detecting at least one selected from the group consisting of a getstatic instruction and a putstatic instruction, annotating said preservable static field to create an annotation indicating whether said field is preservable, compiling said computer program to produce an output using said annotation, wherein said output includes information about said field, encoding said output if backward compatibility is required, loading said output, and executing said output in an environment.
Claims12
A method for optimized execution of source code comprising:
- detecting a target field in said source code with a compiler;
- annotating said target field prior to compiling to create an annotation indicating weather said field is preservable, comprising annotating at least one selected from the group consisting of a getstatic instruction and a putstatic instruction;
- compiling said source code to produce an output using said annotation, wherein said output includes information about said target field;
- encoding said output if backward compatibility is required;
- loading said output;
- and
- executing said output in an environment.
A computer program product comprising:
- a computer usable medium having computer readable program code embodied therein configured for optimized execution of source code, said computer program product comprising:
- computer readable code configured to cause a computer to detect a target field in said source code with a compiler;
- computer readable code configured to cause a computer to annotate said target field prior to compiling to create an annotation indicating whether said field is preservable, comprising annotating at least one selected from the group consisting of a getstatic instruction and a putstatic instruction;
- computer readable code configured to cause a computer to compile said source code to produce an output using said annotation, wherein said output includes information about said target field;
- computer readable code configured to cause a computer to encode said output if backward compatibility is required;
- computer readable code configured to cause a computer to load said output;
- and
- computer readable code configured to cause a computer to execute said output in an environment.
Dependencies are inferred from the claim text.