Method and apparatus for performing correctness checks opportunistically
Abstract
A method and an apparatus that enable spare instruction slots within a code module to be utilized opportunistically for insertion of instructions associated with correctness check functions. The apparatus comprises a compiler that generates code and an initial instruction schedule. During generation of the initial instruction schedule, the compiler ignores code sequences associated with correctness check functions. After the initial instruction schedule has been generated, the compiler examines the initial instruction schedule and determines locations of spare instruction slots in the initial instruction schedule that can potentially be utilized for insertion of the code sequences associated with the correctness checks. The code sequences associated with the correctness checks are then inserted into the instruction schedule to the extent that insertion of the code sequences does not lengthen the final instruction schedule. Consequently, no performance penalty is incurred at run time.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 26.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
An apparatus for performing correctness checks, the apparatus comprising: logic configured to receive a first set of instructions comprising one or more conditional code sequences that when executed direct one or more correctness checks; logic configured to generate an initial instruction schedule and a conditional instruction stream from the first set of instructions, such that the initial instruction schedule is devoid of said conditional code sequences and such that the conditional code sequences of the conditional instruction stream are associated with a corresponding set of one or more in
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗