Chapter 6: Installing and Using Binaryen
During the compilation process, compiled languages produce their own Intermediate Representation (IR). The compilers then optimize the IR to generate optimized code. Before passing it to LLVM, compilers should convert this IR into something that LLVM understands (LLVM IR). LLVM optimizes LLVM IR and produces native code (like the WebAssembly binary). These multiple IR generations and optimizations at different levels make the compilation process slower and not very effective. Binaryen tries to eliminate these multiple IR generations and uses its own IR.
(WebAssembly) Binary + Emscripten = Binaryen
Get Practical WebAssembly now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.