This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |