Documentation home / VM Reference
VM Reference
greenServeFE Bytecode Instruction Reference
Instruction set for the greenServeFE stack VM, including loads, stores, arithmetic, jumps, calls, functions, collections, imports and iteration.
Current instruction set
The compiler emits the following operations. The VM executes them in its dispatch loop.
OP_NOP OP_LOAD_CONST OP_LOAD_NAME OP_STORE_NAME OP_POP_TOP OP_ADD OP_SUB OP_MUL OP_DIV OP_MOD OP_NEG OP_NOT OP_EQ OP_NE OP_LT OP_LE OP_GT OP_GE OP_AND OP_OR OP_JUMP OP_JUMP_IF_FALSE OP_JUMP_IF_TRUE OP_CALL OP_RETURN OP_BUILD_ARRAY OP_BUILD_OBJECT OP_GET_INDEX OP_SET_INDEX OP_GET_MEMBER OP_SET_MEMBER OP_MAKE_FUNCTION OP_IMPORT OP_FROM_IMPORT OP_ITER_INIT OP_ITER_NEXT OP_HALT
Inspect generated bytecode
greenServeFE --dump program.gsve
Use --trace to observe execution as instructions run. Opcode details are an implementation reference; the GSVE language syntax is documented separately in Language Reference.
