I have been experimenting a little bit with LLVM and its WASM backend. Unfortunately, although it is easy to find examples on how to compile a “hello world” using C, resources are a bit scattered when it comes to doing something a little more specific like compiling LLVM IR into WASM with WASI support. I found Surma’s article on how to compile C into WASM from scratch to be a very valuable resource, and Frank Denis’s article on Compiling C to WebAssembly using clang/LLVM and WASI was ...