Hello-world Program On Host

Now we have our host set up, we can build our hello world program and run it using WAMR.

First, build iwasm vmcore on your platform.

cd ${WAMR-dir}/product-mini/platforms/${your platform}
mkdir build && cd build
cmake ..

Then you are ready to go to the directory that contains the hello world program and copy our iwasm vmcore

cp iwasm ../../../app-samples/hello-world
cd ${WAMR-dir}/product-mini/app-samples/hello-world

Now you could execute your first wasm program!

./iwasm test.wasm

Last updated