Skip to main content

EVM Instruction Semantics

Definition

EVM instruction semantics define the precise operation and effect of each command executed by the Ethereum Virtual Machine. These semantics specify how each opcode modifies the EVM’s state, including stack manipulations, memory access, storage operations, and gas consumption. A thorough understanding of these rules is essential for smart contract developers to write secure and predictable code. It also forms the basis for formal verification methods, ensuring contract behavior aligns with its intended design.