Skip to content

Instantly share code, notes, and snippets.

View strax's full-sized avatar

Sami Kukkonen strax

View GitHub Profile
@s-macke
s-macke / hello.c
Last active August 28, 2023 06:30
Hello world example by using an headerless implementation of the WASI interface. The only dependency is clang
/*
* This code is a headerless implementation of the WASI interface in C and prints "Hello World!.
* You only need clang and the llvm linker.
*
* compile with
* clang -Os -nostdlib --target=wasm32 -Wl,--allow-undefined hello.c -o hello.wasm
*
* run with
* https://runno.dev/wasi
* Just upload hello.wasm