Cloning programming code
Abstract
Techniques for cloning programming code are disclosed. In an embodiment, the cloned code is in the form of functions in the C language. Further, in a method embodiment, a clone of a function is invoked, and information mapping the clone to the function is generated. At link time, if no function body of the clone is accessible by a linker, then the linker uses information mapping the clone to the function to satisfy a linker's requirement. At load time, if no function body of the clone is accessible by a loader, then the loader, based on the mapping information, allows selection of a body of the function. However, if the body function of the clone is accessible by the loader, then the loader allows selection of the body of the clone.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 6.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for improving performance of a program, comprising: providing a call to a clone of a function from which the clone is created, wherein said call is provided regardless of whether a function body of the clone exists or not; the function representing programming code performing a task for the program; generating information mapping the clone to the function; at link time for the program, if no function body of the clone is accessible by a linker, then the linker using the information mapping the clone to the function to satisfy a linker's requirement; and at load time for the progra
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗