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

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.

主站蜘蛛池模板: 富裕县| 海伦市| 新泰市| 西林县| 临潭县| 高安市| 名山县| 石屏县| 车险| 五大连池市| 和田县| 比如县| 扬中市| 云龙县| 漳州市| 温州市| 三河市| 山丹县| 高唐县| 五峰| 广水市| 赤城县| 湟中县| 浦江县| 张北县| 西乌珠穆沁旗| 佛坪县| 河北区| 壤塘县| 汾阳市| 贵溪市| 文水县| 宁城县| 湘阴县| 格尔木市| 饶平县| 沁源县| 蛟河市| 利川市| 永善县| 三原县|