发明授权
- 专利标题: Fast conditional thunk utility
- 专利标题(中): 快速条件thunk实用程序
-
申请号: US09092257申请日: 1998-06-05
-
公开(公告)号: US06553429B1公开(公告)日: 2003-04-22
- 发明人: Brian D. Wentz , James Edward Walsh
- 申请人: Brian D. Wentz , James Edward Walsh
- 主分类号: G06F946
- IPC分类号: G06F946
摘要:
A conditional thunk utility employing an assembler-level direct-branch thunk technique. In a condition-check alternative, the conditional thunk utility performs a condition check followed by a direct-branch jump. The condition-check methodology is implemented using an assembler-level direct-branch technique, and the conditional thunk utility does not utilize the stack to queue the arguments of a function call. Thus, the stack is not altered from its desired condition just prior to executing the API function call. The condition-check alternative checks the thunk condition for each function call and, for this reason, may be used when the thunk condition can vary relatively frequently while the host computer system is running. In a jump-table alternative, the conditional thunk utility performs an assembler-level jump table check followed by a direct jump to a target address. In the jump-table alternative, the assembler-level direct branch code is configured to retrieve the jump address for the conditional thunk decision from the instruction cache memory (I-cache). Because the thunk conditions are checked and the jump table is configured in advance, the jump-table embodiment does not require a thunk condition check before each jump. For this reason, the jump-table alternative may be used for thunk conditions are invariant, or vary relatively infrequently, while the host computer system is running.
信息查询