官术网_书友最值得收藏!

The EMSDK and Binaryen

In Chapter 4, Installing the Required Dependencies, we'll install the EMSDK and use it to manage the dependencies required to compile C and C++ to Wasm modules. Emscripten uses Binaryen's asm2wasm tool to compile the asm.js output by Emscripten to a .wasm file. Binaryen is a compiler and toolchain infrastructure library that includes tools to compile various formats to WebAssembly modules and vice versa. Understanding the inner workings of Binaryen isn't required to use WebAssembly, but it is important to be aware of the underlying technologies and how they work together. By passing certain flags into the compile command for Emscripten (emcc), we can pipe the resultant asm.js code to Binaryen to output our .wasm file.

主站蜘蛛池模板: 曲阳县| 许昌县| 正阳县| 昌平区| 定日县| 延边| 治多县| 绥德县| 东丽区| 韩城市| 潢川县| 稷山县| 邯郸县| 忻城县| 慈利县| 卢湾区| 黄骅市| 庆城县| 华宁县| 磐石市| 凌海市| 巴中市| 防城港市| 嘉兴市| 兴隆县| 余姚市| 上犹县| 哈巴河县| 越西县| 门源| 尤溪县| 辰溪县| 特克斯县| 余姚市| 阜宁县| 垦利县| 奉贤区| 衡阳县| 简阳市| 桃源县| 万宁市|