- Learn WebAssembly
- Mike Rourke
- 256字
- 2021-08-13 15:38:48
Portable target for compilation
WebAssembly was designed from the beginning with portability in mind. Portability in this context means that WebAssembly's binary format can be executed efficiently on a variety of operating systems and instruction set architectures, on and off the web. The specification for WebAssembly defines portability in the context of an execution environment. WebAssembly was designed to run efficiently in environments that meet certain characteristics, most of which are related to memory. WebAssembly's portability can also be attributed to the absence of a specific API around the core technologies. Instead, it defines an import mechanism where the set of available imports is defined by the host environment.
In a nutshell, this means that WebAssembly isn't tied to a specific environment, such as the web or desktop. The WebAssembly Working Group has defined a Web API, but that's separate from the Core Specification. The Web API caters to WebAssembly, not the other way around.
The compilation aspect of the definition indicates that WebAssembly will be simple to compile down to its binary format from source code written in high-level languages. The MVP focuses on two languages, C and C++, but Rust can also be used given its similarities to C++. Compilation will be achieved through the use of a Clang/LLVM backend, although we'll be using Emscripten in this book to generate our Wasm modules. The plan is to eventually add support for other languages and compilers (such as GCC), but the MVP is focused on LLVM.
- JavaScript百煉成仙
- Raspberry Pi Networking Cookbook(Second Edition)
- C語言程序設(shè)計
- Python進階編程:編寫更高效、優(yōu)雅的Python代碼
- Java EE 7 Development with NetBeans 8
- Getting Started with Python Data Analysis
- Microsoft System Center Orchestrator 2012 R2 Essentials
- Creating Data Stories with Tableau Public
- JSP程序設(shè)計實例教程(第2版)
- 寫給程序員的Python教程
- HTML5+CSS3+JavaScript 從入門到項目實踐(超值版)
- Unity Android Game Development by Example Beginner's Guide
- Learning D
- LabVIEW數(shù)據(jù)采集
- Spring Microservices