Struct SYN_WASM_Context_s¶
ClassList > SYN_WASM_Context_s
WebAssembly virtual machine execution context.
#include <syn_wasm.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint8_t | call_depth |
| SYN_WASM_CallFrame | call_stack |
| uint16_t | global_count |
| uint64_t | globals |
| uint16_t | host_func_count |
| SYN_WASM_HostFunc | host_funcs |
| uint8_t | label_depth |
| SYN_WASM_Label | label_stack |
| uint8_t * | linear_mem |
| uint32_t | linear_mem_size |
| uint16_t | local_count |
| uint64_t | locals |
| const SYN_WASM_Module *uint32_t | pc |
| uint32_t | sp |
| uint64_t | stack |
| SYN_WASM_Status | status |
| void * | user_ctx |
Public Attributes Documentation¶
variable call_depth¶
Active call depth
variable call_stack¶
Call frame stack array
variable global_count¶
Global variable count
variable globals¶
Global variables array
variable host_func_count¶
Registered host function count
variable host_funcs¶
Host function table
variable label_depth¶
Active label depth
variable label_stack¶
Control block label stack array
variable linear_mem¶
Pointer to linear RAM memory buffer
variable linear_mem_size¶
Size of linear RAM memory buffer in bytes
variable local_count¶
Active local variable count
variable locals¶
Local variables array
variable pc¶
< Pointer to target Wasm module Program counter opcode offset
variable sp¶
Operand stack pointer
variable stack¶
Operand stack array
variable status¶
VM status and trap code
variable user_ctx¶
Custom user context pointer
The documentation for this class was generated from the following file src/syntropic/vm/syn_wasm.h