diff options
| author | Henry <mail@henrygressmann.de> | 2026-04-19 17:48:32 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-04-19 17:49:59 +0200 |
| commit | e667ae4554e816b4081d874fc3564b07c28dbec6 (patch) | |
| tree | 534aa3b8b40eb42e77e7f4979d6fc0f3ad320c9e /ARCHITECTURE.md | |
| parent | 684d5a04a928ea4132d0c5e61bb4086fac9feb22 (diff) | |
feat: simplify module api
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'ARCHITECTURE.md')
| -rw-r--r-- | ARCHITECTURE.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 2890089..c5a5a0e 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -4,7 +4,7 @@ TinyWasm follows the general Runtime Structure described in the [WebAssembly Spe Key runtime layout: -- Values are stored in four fixed-capacity typed stacks: `stack_32` (`i32`/`f32`), `stack_64` (`i64`/`f64`), `stack_128` (`v128`), and `stack_ref` (`funcref`/`externref`). +- Values are stored in four fixed-capacity typed stacks: `stack_32` (`i32`/`f32`/`funcref`/`externref`), `stack_64` (`i64`/`f64`), `stack_128` (`v128`) - Locals are allocated in those value stacks. Each `CallFrame` stores `locals_base`, and local ops index from that base. - Calls use a separate fixed-capacity `CallStack` of `CallFrame`s. - Structured control (`block`/`loop`/`if`/`br*`) is lowered during parsing to jump-oriented instructions: `Jump`, `JumpIfZero`, `BranchTable*`, `DropKeep*`, and `Return`. @@ -12,7 +12,7 @@ Key runtime layout: ## Precompiled Modules -`TinyWasmModule` can be serialized to `.twasm` (`serialize_twasm`) and loaded later (`from_twasm`). +Modules can be serialized to `.twasm` (`serialize_twasm`) and loaded later (`from_twasm`). This allows deployments that execute precompiled modules without enabling the parser in the runtime binary. See: |
