Repository navigation
docs: add --run-mode=aot to commands that run AOT-compiled files - #323
Merged
Merged
Conversation
Since 0.17.0, wasmedge runs a compiled AOT WASM in the interpreter unless --run-mode=aot is given. These pages compile a file with wasmedge compile and then run it without the flag, so the examples silently run in interpreter mode. Same fix as WasmEdge/WasmEdge#5530. Assisted-by: Claude (Anthropic) Signed-off-by: Arin Ahuja <arinsapien@gmail.com>
Same fix as the previous commit, applied to the zh translations. The aot.md, quick_start.md and install.md commands now match their already-updated English versions. Assisted-by: Claude (Anthropic) Signed-off-by: Arin Ahuja <arinsapien@gmail.com>
hydai
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation
Since 0.17.0,
wasmedgeruns a compiled AOT WASM in the interpreter unless--run-mode=aotis given (see WasmEdge/WasmEdge#5169). Many pages compile a file withwasmedge compileand then run it without the flag, so readers following them silently get interpreter mode and much slower runs. This is a fix to existing docs.Related issue
Same fix as WasmEdge/WasmEdge#5530, merged for examples/wasm/README.md.
What type of PR is this
/kind documentation
Proposed Changes
Adds
--run-mode=aotto 63 run commands: 29 in 18 English pages, and 34 in 21 pages of the Chinese translation. Every changed command runs a file compiled withwasmedge compile/wasmedgecearlier on the same page. In the Chineseaot.md,quick_start.mdandinstall.md, the commands now match their already-updated English versions.Verified that every changed line only adds the flag: