- Learn WebAssembly
- Mike Rourke
- 224字
- 2021-08-13 15:38:48
Language concepts
The Core Specification states WebAssembly encodes a low-level, assembly-like programming language. The specification defines the structure, execution, and validation of this language as well as the details of the binary and text formats. The language itself is structured around the following concepts:
- Values, or rather value types that WebAssembly provides
- Instructions that are executed within the stack machine
- Traps produced under error conditions and abort execution
- Functions into which code is organized, each of which takes a sequence of values as parameters and returns a sequence of values as a result
- Tables, which are arrays of values of a particular element type (such as function references) that are selectable by the executing program
- Linear Memory, which is an array of raw bytes that can be used to store and load values
- Modules, WebAssembly binary (.wasm file) that contains function, tables, and linear memories
- Embedder, the mechanism by which WebAssembly can be executed in a host environment, such as a web browser
Functions, tables, memory, and modules have direct correlations with the JavaScript API and are important to be aware of. These concepts describe the underlying structure of the language itself and how to write or encode WebAssembly. With regard to usage, understanding the corresponding semantic phases of WebAssembly provides a complete definition of the technology:
Language concepts and their relationship
推薦閱讀
- Oracle WebLogic Server 12c:First Look
- 編程的修煉
- Monkey Game Development:Beginner's Guide
- PHP 7底層設計與源碼實現
- C/C++算法從菜鳥到達人
- 深度強化學習算法與實踐:基于PyTorch的實現
- HTML5+CSS3網站設計基礎教程
- Linux操作系統基礎案例教程
- SQL Server實用教程(SQL Server 2008版)
- Getting Started with React Native
- Docker:容器與容器云(第2版)
- Python 快速入門(第3版)
- Visual C++程序設計全程指南
- Getting Started with Windows Server Security
- MySQL核心技術與最佳實踐