Recompiling with generic to specific replacement
Abstract
Executable code may be recompiled so that generic portions of code may be replaced with specific portions of code. The recompilation may customize executable code for a specific use or configuration, making the code lightweight and executing faster. The replacement mechanism may replace variable names with fixed values, replace conditional branches with only those branches which are known to be executed, and may eliminate executable code portions that are not executed. The replacement mechanism may comprise identifying known values defined in the executable code for variables, and replacing those variables with the constant value. Once the constants are substituted, the code may be analyzed to identify branches that may be evaluated using the constant values. Those branches may be reformed using the constant value and the rest of the conditional code that may not be accessed may be removed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: receiving a set of executable code; instrumenting said executable code; executing said executable code to collect data while said executable code executes; decompiling said set of executable code; determining variables in said executable code for replacement with constant values, wherein said determining comprises: receiving a semantic definition of said executable code, said semantic definition being used to identify at least one occurrence of a first variable; and said semantic definition being debugger symbols; determining a first constant value for a first variable in
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗