11. A computer-implemented method, comprising: obtaining an indication of a native language function to be called from a platform-independent language program in a virtual machine implemented on a computer system; and automatically generating 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.
11. A computer-implemented method, comprising: obtaining an indication of a native language function to be called from a platform-independent language program in a virtual machine implemented on a computer system; and automatically generating 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. 15. The method as recited in claim 11 , further comprising compiling the generated stub with platform-independent language source code for the virtual machine on the system.