System and method for dynamically replacing code
Abstract
The present disclosure relates to a system and method for dynamically replacing code. In one arrangement, the system and method pertain to intercepting original program instructions during execution of the program, determining if an original program instruction is to be replaced, and dynamically replacing the program instruction with a replacement instruction if it is determined that the original program instruction is to be replaced.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 38 · Forward citations: 107.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method for dynamically patching code, comprising the steps of: intercepting original program instructions during execution of the program; determining if an original program instruction is to be replaced; and dynamically replacing the original program instruction with a replacement instruction by fetching the replacement instruction and storing the replacement instruction in a code cache from which the replacement instruction can be executed in lieu of the original program instruction.
- Claim 2Depends on #1
The method of claim 1 , wherein dynamically replacing the original program instruction further comprises executing the replacement instruction in lieu of the original program instruction each time a function associated with the original program instruction is required.
- Claim 3Depends on #1
The method of claim 1 , wherein the replacement instruction comprises part o
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 107 total)
References Cited — Backward Prior Art (38)
Non-Patent Literature (5)
- Application entitled "System and Method for Facilitating Profiling and Application" by Fisher, et al.; U.S. Appl. No. 10/606,867; filed Jun. 26, 2003.
- Calder et al, Fast and accurate instruction fetch and branch prediction, IEEE, pp 2-11, 1994.
- Hicks, et al.; "Dynamic Software Updating"; Jun. 2001.
- Kim et al, Hardware support for control transfers in code caches, IEEE Micro, pp 1-12, 2003.
- Segal, et al.; "On-The-Fly Program Modification: Systems for Dynamic Updating"; IEEE Computer Society, vol. 10, No. 2; Mar. 1993; pp. 53-65.