Document how to use WASI threads in AOT mode (#1905)
Describe how to use WASI threads in AOT mode, following the discussion below: https://github.com/bytecodealliance/wasm-micro-runtime/pull/1867#discussion_r1070268062 Make aux stack boundary checks of wasi-threads always successful by setting `exec_env->aux_stack_bottom` to UINT32_MAX and `exec_env->aux_stack_boundary` to 0
This commit is contained in:
@ -10,7 +10,7 @@ make \
|
||||
THREAD_MODEL=posix
|
||||
```
|
||||
|
||||
Build and run the samples
|
||||
## Build and run the samples
|
||||
|
||||
```shell
|
||||
$ mkdir build
|
||||
@ -22,3 +22,10 @@ $ ./iwasm wasm-apps/no_pthread.wasm
|
||||
...
|
||||
$ ./iwasm wasm-apps/exception_propagation.wasm
|
||||
```
|
||||
|
||||
## Run samples in AOT mode
|
||||
```shell
|
||||
$ ../../../wamr-compiler/build/wamrc \
|
||||
-o wasm-apps/no_pthread.aot wasm-apps/no_pthread.wasm
|
||||
$ ./iwasm wasm-apps/no_pthread.aot
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user