Documentation Index
Fetch the complete documentation index at: https://docs.thru.org/llms.txt
Use this file to discover all available pages before exploring further.
ThruVM is a RISC-V-based virtual machine that executes smart contracts on the Thru blockchain. It provides deterministic program execution with segmented memory management and comprehensive system calls.
Key Components
RISC-V base ISA (RV64I) with extensions for multiplication/division (M), compressed instructions (C), bit manipulation (B), and cryptographic hash functions (Zknh).
48-bit segmented address space with different segment types for read-only data, account metadata, account data with copy-on-write semantics, and anonymous memory regions.
Binary format specification with 8-byte header, variable-length program bytecode, and 4-byte footer.
Comprehensive syscall interface for memory management, account operations, program control, state compression, and event emission.
Error codes for memory faults, resource exhaustion, invalid operations, and syscall failures.