Patents
US 8,893,100 B2#21304404 Most CitedActiveUnited States (USPTO)Utility

Return address optimisation for a dynamic code translator

5Forward Citations (#21304404 Global)
0.4/yrCitation Velocity (#19365213 Global)
1.41Citation PageRank (#25203516 Global)
12Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A dynamic code translator with isoblocking uses a return trampoline having branch instructions conditioned on different isostates to optimize return address translation, by allowing the hardware to predict that the address of a future return will be the address of trampoline. An IP relative call is inserted into translated code to write the trampoline address to a target link register and a target return address stack used by the native machine to predict return addresses. If a computed subject return address matches a subject return address register value, the current isostate of the isoblock is written to an isostate register. The isostate value in the isostate register is then used to select the branch instruction in the trampoline for the true subject return address. Sufficient code area in the trampoline instruction set can be reserved for a number of compare/branch pairs which is equal to the number of available isostates.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 5.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method of optimizing return address translation in a dynamic code translator comprising: receiving a function call from subject code designed for a first machine having a first hardware environment; compiling an isoblock including at least target code and compatibility information wherein the target code is designed for a second machine having a second hardware environment which is different from the first hardware environment and the target code includes a subfunction corresponding to the function call; planting in the target code a trampoline instruction set having a plurality of branch in

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • Bruening, Derek, et al., "An Infrastructure for Adaptive Dynamic Optimization", 2003, pp. 1-11.
  • Payer, Mathias, et al., "Fine-Grained User-Space Security Through Virtualization", Mar. 9-11, 2011, pp. 157-168.
  • Rogers, Ian, "Optimising JAVA Programs Through Basic Block Dynamic Compilation," University of Manchester, chapter 3, pp. 45-60 (Sep. 2002).
  • Tingtao, Sun, et al., "Return Instruction Analysis and Optimization in Dynamic Binary Translation," Int'l. Conf. Frontier of Computer Science and Technology (2009).
  • Zahran, Mohamed, et al., "Return-Address Prediction in Speculative Multithreaded Environments," Proc. 9th Int'l. Conf. High Performance Computing (2002).