Java Virtual Machine - Bytecode Instructions

Bytecode Instructions

The JVM has instructions for the following groups of tasks:

  • Load and store
  • Arithmetic
  • Type conversion
  • Object creation and manipulation
  • Operand stack management (push / pop)
  • Control transfer (branching)
  • Method invocation and return
  • Throwing exceptions
  • Monitor-based concurrency

The aim is binary compatibility. Each particular host operating system needs its own implementation of the JVM and runtime. These JVMs interpret the bytecode semantically the same way, but the actual implementation may be different. More complex than just emulating bytecode is compatibly and efficiently implementing the Java core API that must be mapped to each host operating system.

Read more about this topic:  Java Virtual Machine

Famous quotes containing the word instructions:

    They had supposed their formula was fixed.
    They had obeyed instructions to devise
    A type of cold, a type of hooded gaze.
    But when the Negroes came they were perplexed.
    These Negroes looked like men....
    Gwendolyn Brooks (b. 1917)