Patent Document ID: 8296745
Application ID: 11967345

Base Claim:
1. A system, comprising: one or more processors; and a memory comprising program instructions executable by the one or more processors to implement a portable stub generator configured to: obtain an indication of a native language function to be called from a platform-independent language program in a virtual machine implemented on the system; and generate a stub in accordance with a tokenized internal representation of the virtual machine, wherein the stub comprises tokenized internal representation instructions configured to invoke the indicated native language function from a platform-independent language function at runtime of the platform-independent language program; wherein the tokenized internal representation instructions of the generated stub are configured to be compiled with platform-independent language code by a compiler for the virtual machine on the system or to be interpreted with platform-independent language code by an interpreter for the virtual machine on the system.

---

Claim 9:
9. The system as recited in claim 1 , wherein the compiler or the interpreter implements one or more built-ins to support platform-specific functionality of stubs generated by the stub generator.