- Learn WebAssembly
- Mike Rourke
- 120字
- 2021-08-13 15:38:50
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.
推薦閱讀
- Boost.Asio C++ Network Programming(Second Edition)
- WildFly:New Features
- 微信公眾平臺開發:從零基礎到ThinkPHP5高性能框架實踐
- Java性能權威指南(第2版)
- 深入理解Android:Wi-Fi、NFC和GPS卷
- Angular開發入門與實戰
- Swift Playgrounds少兒趣編程
- Mastering jQuery Mobile
- Get Your Hands Dirty on Clean Architecture
- Opa Application Development
- Instant PhoneGap
- Mastering Docker(Second Edition)
- 新手學Visual C
- HTML5+CSS3從入門到精通(微課精編版)
- 響應式編程實戰:構建彈性、可伸縮、事件驅動的分布式系統