Patent ID: 7415701

Claim:
A method for executing a managed application comprising: executing the managed application with a virtual machine associated with a first ISA; loading a native library or application associated with a second ISA that is different than the first ISA; trapping a first call to a procedure from the managed application to the native library or application, the procedure being associated with the second ISA; translating the procedure into a translated version of the procedure, the translated version of the procedure being associated with the first ISA; directing the first call to the translated version of the procedure; intercepting a second call from the translated version of the procedure to an object associated with the managed application within the virtual machine; translating the second call into a translated second call having a format compatible with the first ISA; passing the translated second call to the object; passing a value from the object to the translated version of the procedure in response to the translated second call; and returning a value from the translated version of the procedure to the managed application via an intervening stub.