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 September 21, 2024 12:08
Hello world example by using an headerless implementation of the WASI interface version 0.1 . The only dependency is clang.
/*
* This code is a headerless implementation of the WASI interface version 0.1 in C and prints "Hello World!.
* You only need clang.
*
* compile with
* clang -Os -nostdlib --target=wasm32 hello.c -o hello.wasm
*
* run with
* https://runno.dev/wasi
* Just upload hello.wasm