Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
constants.hpp
Go to the documentation of this file.
1#pragma once
2#include <cstdint>
3
4namespace sysio { namespace vm {
5 enum constants {
6 magic = 0x6D736100,
7 version = 0x1,
8 magic_size = sizeof(uint32_t),
9 version_size = sizeof(uint32_t),
10 id_size = sizeof(uint8_t),
12 max_call_depth = 250,
13 initial_stack_size = 8*1024,
14 initial_module_size = 1 * 1024 * 1024,
15 max_memory = 4ull << 31,
16 max_useable_memory = (1ull << 32), //4GiB
17 page_size = 64ull * 1024, //64kb
19 };
20}} // namespace sysio::vm
@ initial_stack_size
Definition constants.hpp:13
@ initial_module_size
Definition constants.hpp:14
@ max_useable_memory
Definition constants.hpp:16
unsigned int uint32_t
Definition stdint.h:126
unsigned char uint8_t
Definition stdint.h:124