"Bytecodes" is a name given to the instructions of a VirtualMachine, so called because the opcodes are 8 bits (one byte) in length, and instructions vary from one to several bytes in length. Unless otherwise specified, the term "bytecodes" refers to those of the Java Virtual Machine (JVM), but the term can also apply to the executable files of other virtual machines, e.g. Microsoft .NET assemblies. Java Bytecodes are found in Java executable ( .class ) files.

Bytecode instructions perform a similar job to native machine instructions, except that bytecodes are machine independent. They are compact (1.8 bytes per average instruction is claimed for Java bytecodes, though this neglects overheads such as the constant pool). Some bytecode instructions are quite high level, e.g. dynamically invoking a virtual method by name.

-- MikeVanEmmerik - 01 Dec 2001

Revision: r1.2 - 17 Jun 2005 - 13:15 - MikeVanEmmerik
Copyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback