发明名称 Method and apparatus for substituting compiler built-in helper functions with machine instructions
摘要 An executable program compiled according to a source instruction set architecture (source ISA) is loaded for execution by a target instruction set architecture (target ISA)-based hardware execution unit, wherein the source and target ISA's are different. The loading includes mapping a compiler built-in helper function in the executable program to a target ISA machine instruction. The loaded program is then executed. As part of the execution, the helper function is replaced with the target ISA machine instruction to which the helper function was mapped, and the target ISA machine instruction is executed rather than the helper function.
申请公布号 US9098355(B2) 申请公布日期 2015.08.04
申请号 US201213976515 申请日期 2012.01.06
申请人 Intel Corporation 发明人 Chen Jianping;Li Jianhui;Gong Jinrong;Li Tingtao
分类号 G06F9/44;G06F9/445;G06F9/455 主分类号 G06F9/44
代理机构 Blakely, Sokoloff, Taylor & Zafman LLP 代理人 Blakely, Sokoloff, Taylor & Zafman LLP
主权项 1. A method, comprising: loading an executable program comprising a sequence of machine instructions compiled according to a source instruction set architecture (source ISA) for execution by a target instruction set architecture (target ISA)-based hardware execution unit, the loading including mapping a compiler built-in helper function (“helper function”) in the executable program to a target ISA machine instruction; and executing the loaded program, the executing comprising replacing the helper function with the target ISA machine instruction to which the helper function was mapped by: retrieving the target ISA machine instruction from a mapping table entry that includes an address of a helper function that matches an address of the function call encountered in the executing program; andreplacing the function call in the executing program with the retrieved target ISA machine instruction; and executing the target ISA machine instruction.
地址 Santa Clara CA US