Patent ID: 7617490

Claim:
A method of executing a non-native software instruction, the method comprising: receiving the non-native software instruction at a device; directly compiling the non-native software instruction to generate a first native software instruction from a first instruction set at the device; executing the first native software instruction at the device; determining a current frequency of execution associated with the first native software instruction by incrementing a counter in response to the execution of the first native software instruction, wherein the current frequency of execution is determined a plurality of times during execution of one or more programs associated with the first native software instruction; when the current frequency of execution associated with the first native software instruction exceeds a threshold during the execution of the one or more programs associated with the first native software instruction, directly compiling the non-native software instruction to generate a second native software instruction from a second instruction set at the device, wherein the second instruction set is different from the first instruction set; and executing the second native software instruction at the device.