- Learn WebAssembly
- Mike Rourke
- 131字
- 2021-08-13 15:38:48
Semantic phases
The Core Specification describes the different phases an encoded module (.wasm file) undergoes when it is being utilized in a host environment (such as a web browser). This aspect of the specification represents how the output is handled and executed:
- Decoding: The binary format is converted into a module
- Validation: The decoded module undergoes validation checks (such as type checking) to ensure the module is well formed and safe
- Execution, Part 1: Instantiation: A module instance, which is the dynamic representation of the module, is instantiated by initializing the Globals, Memories, and Tables, and invokes the module's start() function
- Execution, Part 2: Invocation: Exported functions are called from the module instance:
The following diagram provides a visual representation of the semantic phases:
Semantic phases of module use
推薦閱讀
- TypeScript Blueprints
- Instant Zepto.js
- Mastering Kotlin
- 從程序員到架構師:大數據量、緩存、高并發(fā)、微服務、多團隊協(xié)同等核心場景實戰(zhàn)
- 數據結構(C語言)
- QGIS By Example
- Scratch3.0趣味編程動手玩:比賽訓練營
- JSP程序設計實例教程(第2版)
- QGIS 2 Cookbook
- 實戰(zhàn)Java高并發(fā)程序設計(第2版)
- Mastering Docker
- Arduino Wearable Projects
- SEO教程:搜索引擎優(yōu)化入門與進階(第3版)
- UML基礎與Rose建模實用教程(第三版)
- Android項目實戰(zhàn):博學谷