- 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
推薦閱讀
- 移動(dòng)UI設(shè)計(jì)(微課版)
- GeoServer Cookbook
- Production Ready OpenStack:Recipes for Successful Environments
- C++寶典
- Python 3 數(shù)據(jù)分析與機(jī)器學(xué)習(xí)實(shí)戰(zhàn)
- Learning Ionic
- OpenCV Android開(kāi)發(fā)實(shí)戰(zhàn)
- scikit-learn Cookbook(Second Edition)
- 從零開(kāi)始學(xué)UI:概念解析、實(shí)戰(zhàn)提高、突破規(guī)則
- 程序員必會(huì)的40種算法
- Sitecore Cookbook for Developers
- Java程序設(shè)計(jì)
- Python滲透測(cè)試編程技術(shù):方法與實(shí)踐(第2版)
- Hands-On ROS for Robotics Programming
- 微信小程序開(kāi)發(fā)圖解案例教程:附精講視頻(第3版)