From cf7092d63f38ab6ced9848f3ed9edc9c045ea35b Mon Sep 17 00:00:00 2001 From: NopeCharon <115794254+NopeCharon@users.noreply.github.com> Date: Mon, 2 Nov 2026 14:54:29 +0530 Subject: [PATCH] docs: document --disable-memory64 in the CLI pages The option lists for `wasmedge`, `wasmedge parse`, `wasmedge validate` and `wasmedge instantiate` covered every `--disable-*` proposal flag except `--disable-memory64`, although all of these commands accept it (registered in include/driver/options.h and shown by `--help`). The parse, validate and instantiate pages also still described Memory64 as "currently not implemented", even though it has been implemented and enabled by default since 0.17.0, as the proposals page states. Drop the stale note and add the `--disable-memory64` item after `--disable-exception-handling` on the four pages. This matches the order in options.h and the existing entry on the `wasmedge compile` page. Checked with WasmEdge 0.18.1: a module with an i64 memory runs and parses, validates and instantiates by default, and every one of these commands rejects it once `--disable-memory64` is passed. Fixes #319 Signed-off-by: NopeCharon <115794254+NopeCharon@users.noreply.github.com> --- docs/start/build-and-run/cli.md | 1 + docs/start/build-and-run/instantiate.md | 3 ++- docs/start/build-and-run/parse.md | 3 ++- docs/start/build-and-run/validate.md | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/start/build-and-run/cli.md b/docs/start/build-and-run/cli.md index 8862ffbe..45b63503 100644 --- a/docs/start/build-and-run/cli.md +++ b/docs/start/build-and-run/cli.md @@ -119,6 +119,7 @@ The options of the `wasmedge` CLI tool are as follows: - Use `--disable-multi-memory` to disable the [Multiple Memories](https://github.com/WebAssembly/multi-memory) proposal (Default `ON`). - Use `--disable-relaxed-simd` to disable the [Relaxed SIMD](https://github.com/webassembly/relaxed-simd) proposal (Default `ON`). - Use `--disable-exception-handling` to disable the [Exception Handling](https://github.com/WebAssembly/exception-handling) proposal (Default `ON`). + - Use `--disable-memory64` to disable the [Memory64](https://github.com/WebAssembly/memory64) proposal (Default `ON`). - Use `--enable-threads` to enable the [Threads](https://github.com/webassembly/threads) proposal (Default `OFF`). - Use `--enable-component` to enable the [Component Model](https://github.com/WebAssembly/component-model) proposal (Default `OFF`, loader and validator phase only). - Use `--enable-all` to enable ALL proposals above. diff --git a/docs/start/build-and-run/instantiate.md b/docs/start/build-and-run/instantiate.md index e42ba03e..3e77fca7 100644 --- a/docs/start/build-and-run/instantiate.md +++ b/docs/start/build-and-run/instantiate.md @@ -49,7 +49,7 @@ The options of the `wasmedge instantiate` command are as follows. - [Multiple Memories](https://github.com/WebAssembly/multi-memory) - [Relaxed SIMD](https://github.com/webassembly/relaxed-simd) - [Exception Handling](https://github.com/WebAssembly/exception-handling) - - [Memory64 (currently not implemented)](https://github.com/WebAssembly/memory64) + - [Memory64](https://github.com/WebAssembly/memory64) - Use `--disable-import-export-mut-globals` to disable the [Import/Export of Mutable Globals](https://github.com/WebAssembly/mutable-global) proposal (Default `ON`). - Use `--disable-non-trap-float-to-int` to disable the [Non-Trapping Float-to-Int Conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions) proposal (Default `ON`). - Use `--disable-sign-extension-operators` to disable the [Sign-Extension Operators](https://github.com/WebAssembly/sign-extension-ops) proposal (Default `ON`). @@ -64,6 +64,7 @@ The options of the `wasmedge instantiate` command are as follows. - Use `--disable-multi-memory` to disable the [Multiple Memories](https://github.com/WebAssembly/multi-memory) proposal (Default `ON`). - Use `--disable-relaxed-simd` to disable the [Relaxed SIMD](https://github.com/webassembly/relaxed-simd) proposal (Default `ON`). - Use `--disable-exception-handling` to disable the [Exception Handling](https://github.com/WebAssembly/exception-handling) proposal (Default `ON`). + - Use `--disable-memory64` to disable the [Memory64](https://github.com/WebAssembly/memory64) proposal (Default `ON`). - Use `--enable-threads` to enable the [Threads](https://github.com/webassembly/threads) proposal (Default `OFF`). - Use `--enable-component` to enable the [Component Model](https://github.com/WebAssembly/component-model) proposal (Default `OFF`, loader phase only). - Use `--enable-all` to enable ALL proposals above. diff --git a/docs/start/build-and-run/parse.md b/docs/start/build-and-run/parse.md index d5b3fa2e..51bddcfc 100644 --- a/docs/start/build-and-run/parse.md +++ b/docs/start/build-and-run/parse.md @@ -41,7 +41,7 @@ The options of the `wasmedge parse` command are as follows. - [Multiple Memories](https://github.com/WebAssembly/multi-memory) - [Relaxed SIMD](https://github.com/webassembly/relaxed-simd) - [Exception Handling](https://github.com/WebAssembly/exception-handling) - - [Memory64 (currently not implemented)](https://github.com/WebAssembly/memory64) + - [Memory64](https://github.com/WebAssembly/memory64) - Use `--disable-import-export-mut-globals` to disable the [Import/Export of Mutable Globals](https://github.com/WebAssembly/mutable-global) proposal (Default `ON`). - Use `--disable-non-trap-float-to-int` to disable the [Non-Trapping Float-to-Int Conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions) proposal (Default `ON`). - Use `--disable-sign-extension-operators` to disable the [Sign-Extension Operators](https://github.com/WebAssembly/sign-extension-ops) proposal (Default `ON`). @@ -56,6 +56,7 @@ The options of the `wasmedge parse` command are as follows. - Use `--disable-multi-memory` to disable the [Multiple Memories](https://github.com/WebAssembly/multi-memory) proposal (Default `ON`). - Use `--disable-relaxed-simd` to disable the [Relaxed SIMD](https://github.com/webassembly/relaxed-simd) proposal (Default `ON`). - Use `--disable-exception-handling` to disable the [Exception Handling](https://github.com/WebAssembly/exception-handling) proposal (Default `ON`). + - Use `--disable-memory64` to disable the [Memory64](https://github.com/WebAssembly/memory64) proposal (Default `ON`). - Use `--enable-threads` to enable the [Threads](https://github.com/webassembly/threads) proposal (Default `OFF`). - Use `--enable-component` to enable the [Component Model](https://github.com/WebAssembly/component-model) proposal (Default `OFF`, loader phase only). - Use `--enable-all` to enable ALL proposals above. diff --git a/docs/start/build-and-run/validate.md b/docs/start/build-and-run/validate.md index 9fa23bb9..457a2fa6 100644 --- a/docs/start/build-and-run/validate.md +++ b/docs/start/build-and-run/validate.md @@ -41,7 +41,7 @@ The options of the `wasmedge validate` command are as follows. - [Multiple Memories](https://github.com/WebAssembly/multi-memory) - [Relaxed SIMD](https://github.com/webassembly/relaxed-simd) - [Exception Handling](https://github.com/WebAssembly/exception-handling) - - [Memory64 (currently not implemented)](https://github.com/WebAssembly/memory64) + - [Memory64](https://github.com/WebAssembly/memory64) - Use `--disable-import-export-mut-globals` to disable the [Import/Export of Mutable Globals](https://github.com/WebAssembly/mutable-global) proposal (Default `ON`). - Use `--disable-non-trap-float-to-int` to disable the [Non-Trapping Float-to-Int Conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions) proposal (Default `ON`). - Use `--disable-sign-extension-operators` to disable the [Sign-Extension Operators](https://github.com/WebAssembly/sign-extension-ops) proposal (Default `ON`). @@ -56,6 +56,7 @@ The options of the `wasmedge validate` command are as follows. - Use `--disable-multi-memory` to disable the [Multiple Memories](https://github.com/WebAssembly/multi-memory) proposal (Default `ON`). - Use `--disable-relaxed-simd` to disable the [Relaxed SIMD](https://github.com/webassembly/relaxed-simd) proposal (Default `ON`). - Use `--disable-exception-handling` to disable the [Exception Handling](https://github.com/WebAssembly/exception-handling) proposal (Default `ON`). + - Use `--disable-memory64` to disable the [Memory64](https://github.com/WebAssembly/memory64) proposal (Default `ON`). - Use `--enable-threads` to enable the [Threads](https://github.com/webassembly/threads) proposal (Default `OFF`). - Use `--enable-component` to enable the [Component Model](https://github.com/WebAssembly/component-model) proposal (Default `OFF`, loader phase only). - Use `--enable-all` to enable ALL proposals above.