| CPC G06F 8/47 (2013.01) [G06F 8/447 (2013.01)] | 20 Claims |

|
1. A method implemented in a computer system that includes a processor implementing a native ISA (instruction set architecture), comprising:
determining that a callee function corresponds to a native ABI (application binary interface) that corresponds to the native ISA and that has a first calling convention, based at least on identifying a call that targets a reference memory address for the callee function; and
based on a caller function corresponding to a foreign ABI that corresponds to a foreign ISA and that has a second calling convention, initiating execution of the callee function calling an entry thunk that:
adapts the second calling convention to the first calling convention, and
directly calls the callee function using the reference memory address.
|