How do I compile a C++ file to WebAssembly? - Stack Overflow
Compile the bitcode to s-assembly: llc -asm-verbose=false -o math.s math.bc Use binaryen 's s2wasm tool to create a .wast file s2wasm math.s > math.wast Use WABT 's wast2wasm tool to translate the textual .wast file i...