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:

    Realizing that his time was nearly spent, he gave full oral instructions about his burial and the manner in which he wished to be remembered.... A few minutes later, feeling very tired, he left the room, remarking, ‘I have no disposition to leave this precious circle. I love to be here surrounded by my family and friends.’ Then he gave them his blessing and said, ‘I am ready to go and I wish you goodnight.’
    —For the State of New Hampshire, U.S. public relief program (1935-1943)