发明授权
- 专利标题: Return address optimisation for a dynamic code translator
- 专利标题(中): 为动态代码转换器返回地址优化
-
申请号: US13479026申请日: 2012-05-23
-
公开(公告)号: US08893100B2公开(公告)日: 2014-11-18
- 发明人: William O. Lovett , Alexander B. Brown
- 申请人: William O. Lovett , Alexander B. Brown
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 代理商 John D. Flynn; Jack V. Musgrove
- 主分类号: G06F9/45
- IPC分类号: G06F9/45 ; G06F9/32 ; G06F9/38 ; G06F9/455 ; G06F9/30 ; G06F9/44
摘要:
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.
公开/授权文献
信息查询