A pedagogical, low-level implementation of the Ethereum Virtual Machine (EVM) written in pure C. This project simulates the core execution environment of Ethereum smart contracts. It handles raw bytecode interpretation, stack machine operations, volatile memory expansion, and basic gas tracking.
Key Features:
Stack Machine: Pure C implementation of the 256-bit EVM stack architecture.
Instruction Set: Support for core opcodes (Arithmetic, Memory operations, Control Flow).
Gas Accounting: Algorithmic tracking of computational costs per operation.
Memory Management: Dynamic, byte-addressed volatile memory allocation.