WebAssembly "Hello, World!" with Wasmer
Create a project directory.
mkdir wasm-sample
cd wasm-sample
Write hello.c
#include <stdio.h>
int main(int argc, char ** argv) {
printf("Hello, World!");
}
Compile to wasm.
I use Docker. You can use it another way if you want to do it.
Reference...
kaisei.hashnode.dev1 min read