Skip to content

Commit

Permalink
doc(wasi-threads): document how to use WASI threads in AOT mode
Browse files Browse the repository at this point in the history
  • Loading branch information
eloparco committed Jan 22, 2023
1 parent 5f0f8fe commit 920a193
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions samples/wasi-threads/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ $ ./iwasm wasm-apps/no_pthread.wasm
...
$ ./iwasm wasm-apps/exception_propagation.wasm
```

Run samples in AOT mode (aux stack must be disabled)
```shell
$ ../../../wamr-compiler/build/wamrc --enable-multi-thread \
-o wasm-apps/no_pthread.aot wasm-apps/no_pthread.wasm
$ ./iwasm wasm-apps/no_pthread.aot
```
1 change: 1 addition & 0 deletions wamr-compiler/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ main(int argc, char *argv[])
option.enable_bulk_memory = true;
option.enable_thread_mgr = true;
option.enable_ref_types = false;
option.enable_aux_stack_check = false;
}
else if (!strcmp(argv[0], "--enable-tail-call")) {
option.enable_tail_call = true;
Expand Down

0 comments on commit 920a193

Please sign in to comment.