System and method for handling rare events by modification of executable code
Abstract
Systems and methods for the efficient handling of rare events by modification of executable code is provided. The present invention eliminates the need for event checking code and handling in the primary execution path of compiled code by using a patch table to modify code during execution. Accordingly, event handling does not introduce additional instructions to the primary execution path, and thus will not interfere with compiler optimizations for maximal performance along the primary execution path. The present invention, therefore, provides event handling for events that occur rarely while reducing the size of the code for execution on memory-constrained devices.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method in a data processing system for generating an event handling patch table for a program, the data processing system including a compiler for compiling the program and a memory, comprising the steps of: selecting at least one location in a function of the program to perform event handling; at compile-time, generating a patch table including substitution code for event handling at the selected location during execution of compiled program code of the function, wherein the generating includes recording in the patch table the at least one selected location and a corresponding event handler
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗