Bytecode

From Rosetta Code
Revision as of 10:18, 31 July 2009 by rosettacode>Dkf (extend the example slightly)

Bytecode is an intermediate step in some compiled languages between source code and machine code. The bytecode is generated by a compiler and then either interpreted when it is run (languages like SmallTalk, Python, PHP, Forth, and Tcl use a virtual machine) or compiled further to optimized machine code. Just-In-Time compilers can interpret the bytecode only when needed and even optimize code that is run very often; this is a common approach with Java and C#.