Compiling C/C++ to WebAssembly using LLVM, Binaryen and WABT

Guy Bedford
InstructorGuy Bedford

Share this video with your friends

Send Tweet

We go through the command-line steps to compile C/C++ via LLVM into an intermediate S file, then use Binaryen to compile that S file into a WAST file and finally WABT to get the WASM binary. We then show an approach to clone and configure a custom std library headers for Web Assembly to build includes to the standard library.