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
4
namespace
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
),
11
varuint32_size
= 5,
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
18
max_pages
= (
max_useable_memory
/
page_size
)
19
};
20
}}
// namespace sysio::vm
sysio::vm::constants
constants
Definition
constants.hpp:5
sysio::vm::page_size
@ page_size
Definition
constants.hpp:17
sysio::vm::varuint32_size
@ varuint32_size
Definition
constants.hpp:11
sysio::vm::max_call_depth
@ max_call_depth
Definition
constants.hpp:12
sysio::vm::max_memory
@ max_memory
Definition
constants.hpp:15
sysio::vm::id_size
@ id_size
Definition
constants.hpp:10
sysio::vm::version
@ version
Definition
constants.hpp:7
sysio::vm::max_pages
@ max_pages
Definition
constants.hpp:18
sysio::vm::magic
@ magic
Definition
constants.hpp:6
sysio::vm::initial_stack_size
@ initial_stack_size
Definition
constants.hpp:13
sysio::vm::version_size
@ version_size
Definition
constants.hpp:9
sysio::vm::initial_module_size
@ initial_module_size
Definition
constants.hpp:14
sysio::vm::max_useable_memory
@ max_useable_memory
Definition
constants.hpp:16
sysio::vm::magic_size
@ magic_size
Definition
constants.hpp:8
sysio
Definition
abi_serializer.cpp:8
uint32_t
unsigned int uint32_t
Definition
stdint.h:126
uint8_t
unsigned char uint8_t
Definition
stdint.h:124
libraries
sys-vm
include
sysio
vm
constants.hpp
Generated by
1.12.0