跳至主要内容

WasmEdge Internal

Overview of WasmEdge Execution Flow

From files or buffers
Create WASM AST
Validate WASM Module
Create WASM instances
Yes
No
Execute WASM
Execute WASM
Host Function Call / Access Runtime Data
Call Host Functions
Access Runtime Data
System Call
AI-related Function Call
Crypto-related Function Call
Socket-related Function Call
Access Memory
Access Stack
Access Cross Module
WASM
Loader
Validator
Instantiator
AOT section found?
AOT Engine
Interpreter Engine
WasmEdge Engine
WasmEdge Runtime
Host Functions
Runtime Data Manager
WASM System Interface, WASI
WASI-NN
WASI-Crypto
WasmEdge-WASI-Socket
Memory Manager
Stack Manager
Registered Module/Function Manager