Crate openvm_platform

Source
Expand description

Platform definitions for OpenVM, including memory regions, low-level runtime functions, custom instruction constants, and assembly macros. This crate is intended to be lightweight and imported both when the target is OpenVM and when it is a normal host machine.

Modules§

fileno
Standard IO file descriptors for use with sys_read and sys_write.
memory
print
rust_rt
This module contains the components required to link a Rust binary.

Constants§

PAGE_SIZE
Size of a zkVM memory page.
WORD_SIZE
Size of a zkVM machine word in bytes. 4 bytes (i.e. 32 bits) as the zkVM is an implementation of the rv32im ISA.

Functions§

align_up
Align address upwards.