Skip to main content

EVM Behavior

EVM Behavioral Specification

Opcode Reference

evm.codes: opcode reference (including gas costs) and an interactive sandbox for stepping through bytecode execution

Solidity Storage Layout

The EVM allows smart contracts to store data in 32-byte words ("storage slots"), however the details of how complex datastructures such as lists or mappings is left as an implementation detail to the higher-level language. Solidity has a specific way of assigning variables to storage slots, described below: