Skip to content

Commit 920a193

Browse files
committed
doc(wasi-threads): document how to use WASI threads in AOT mode
1 parent 5f0f8fe commit 920a193

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

samples/wasi-threads/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,10 @@ $ ./iwasm wasm-apps/no_pthread.wasm
2222
...
2323
$ ./iwasm wasm-apps/exception_propagation.wasm
2424
```
25+
26+
Run samples in AOT mode (aux stack must be disabled)
27+
```shell
28+
$ ../../../wamr-compiler/build/wamrc --enable-multi-thread \
29+
-o wasm-apps/no_pthread.aot wasm-apps/no_pthread.wasm
30+
$ ./iwasm wasm-apps/no_pthread.aot
31+
```

wamr-compiler/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ main(int argc, char *argv[])
231231
option.enable_bulk_memory = true;
232232
option.enable_thread_mgr = true;
233233
option.enable_ref_types = false;
234+
option.enable_aux_stack_check = false;
234235
}
235236
else if (!strcmp(argv[0], "--enable-tail-call")) {
236237
option.enable_tail_call = true;

0 commit comments

Comments
 (0)