Adaptive code through self steered execution
First Claim
1. A method executable in a computing system for generating self-steering executable code, the method comprising:
- analyzing program code;
identifying a non-optimized portion of code in the program code;
adding at least one optimized version of the non-optimized portion to the program code while retaining the non-optimized portion in the program code;
adding a monitoring mechanism to the program code which is configured to monitor a behavior of the non-optimized portion of code;
adding a selection mechanism to the program code, said selection mechanism being configured to select between two or more versions of the portion of code during runtime based at least in part on said behavior, said two or more versions including the non-optimized portion of code and the optimized version of the non-optimized portion of code; and
compiling the program code with the non-optimized portion, the added optimized version, the monitoring mechanism, and the selection mechanism.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and mechanism for producing and executing self-steering program code. A method comprises analyzing program code and identifying portions which may be amenable to optimization. Having identified such a portion of code, at least one optimized version of the identified code is added to the program code. Additionally, a selection mechanism is added to the program code which is configured to select between two or more versions of the portion of code during runtime. The modified program code is then compiled with the added optimized version and the selection mechanism. During execution, monitoring of behavior of the code may be enabled or disabled. Based upon such monitored behavior, a different version of the code may be selected for execution. Various optimized versions may be selected for execution in a manner which takes advantage of the current behavior of the program.
21 Citations
12 Claims
-
1. A method executable in a computing system for generating self-steering executable code, the method comprising:
-
analyzing program code; identifying a non-optimized portion of code in the program code; adding at least one optimized version of the non-optimized portion to the program code while retaining the non-optimized portion in the program code; adding a monitoring mechanism to the program code which is configured to monitor a behavior of the non-optimized portion of code; adding a selection mechanism to the program code, said selection mechanism being configured to select between two or more versions of the portion of code during runtime based at least in part on said behavior, said two or more versions including the non-optimized portion of code and the optimized version of the non-optimized portion of code; and compiling the program code with the non-optimized portion, the added optimized version, the monitoring mechanism, and the selection mechanism. - View Dependent Claims (2, 3, 4)
-
-
5. A processor comprising:
-
memory configured to store program code; and circuitry configured to; analyze program code; identify a non-optimized portion of code in the program code; add at least one optimized version of the non-optimized portion to the program code while retaining the non-optimized portion in the program code; add a monitoring mechanism to the program code which is configured to monitor a behavior of the non-optimized portion of code; add a selection mechanism to the program code, said selection mechanism being configured to select between two or more versions of the portion of code during runtime based at least in part on said behavior, said two or more versions including the non-optimized portion of code and the optimized version of the non-optimized portion of code; and compile the program code with the non-optimized portion, the added optimized version, the monitoring mechanism, and the selection mechanism. - View Dependent Claims (6, 7, 8)
-
-
9. A non-transitory computer readable medium comprising program instructions, said program instructions being operable to:
-
analyze program code; identify a non-optimized portion of code in the program code; add at least one optimized version of the non-optimized portion to the program code while retaining the non-optimized portion in the program code; add a monitoring mechanism to the program code which is configured to monitor a behavior of the non-optimized portion of code; add a selection mechanism to the program code, said selection mechanism being configured to select between two or more versions of the portion of code during runtime based at least in part on said behavior, said two or more versions including the non-optimized portion of code and the optimized version of the non-optimized portion of code; and compile the program code with the non-optimized portion, the added optimized version, the monitoring mechanism, and the selection mechanism. - View Dependent Claims (10, 11, 12)
-
Specification