mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-13 13:11:25 +00:00
parent
ea5cac6dad
commit
e5eb4e8020
|
@ -1,14 +1,14 @@
|
||||||
Introduction
|
#User Guide
|
||||||
==============
|
|
||||||
|
##Introduction
|
||||||
|
|
||||||
This project aims to demonstrate wasm app management and programming model of WAMR.
|
This project aims to demonstrate wasm app management and programming model of WAMR.
|
||||||
|
|
||||||
Build all binaries
|
##Build all binaries
|
||||||
==============
|
|
||||||
Execute the build.sh script then all binaries including wasm application files would be generated in 'out' directory.
|
Execute the build.sh script then all binaries including wasm application files would be generated in 'out' directory.
|
||||||
`./build.sh`
|
`./build.sh`
|
||||||
|
|
||||||
Out directory structure
|
###Out directory structure
|
||||||
------------------------------
|
|
||||||
<pre>
|
<pre>
|
||||||
out/
|
out/
|
||||||
├── host_tool
|
├── host_tool
|
||||||
|
@ -47,8 +47,7 @@ out/
|
||||||
+ timer.wasm
|
+ timer.wasm
|
||||||
This application shows the timer programming model. It creates a periodic timer that prints the current expiry number in every second.
|
This application shows the timer programming model. It creates a periodic timer that prints the current expiry number in every second.
|
||||||
|
|
||||||
Run
|
##Run
|
||||||
==========================
|
|
||||||
- Enter the out directory
|
- Enter the out directory
|
||||||
`cd ./out/`
|
`cd ./out/`
|
||||||
|
|
||||||
|
@ -86,10 +85,9 @@ Run
|
||||||
|
|
||||||
>Note: You have to manually kill the simple process by Ctrl+C after use.
|
>Note: You have to manually kill the simple process by Ctrl+C after use.
|
||||||
|
|
||||||
Output example
|
###Output example
|
||||||
---------------------------------
|
|
||||||
|
|
||||||
**Output of simple**
|
####Output of simple
|
||||||
```
|
```
|
||||||
$ ./simple -s
|
$ ./simple -s
|
||||||
App Manager started.
|
App Manager started.
|
||||||
|
@ -248,7 +246,7 @@ connection lost, and waiting for client to reconnect...
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**Output of host_tool**
|
####Output of host_tool
|
||||||
```
|
```
|
||||||
$ ./host_tool -q
|
$ ./host_tool -q
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user