官术网_书友最值得收藏!

  • 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
主站蜘蛛池模板: 隆昌县| 吉安市| 赫章县| 博湖县| 三穗县| 嫩江县| 潜江市| 朔州市| 洪湖市| 新营市| 四子王旗| 武川县| 苏州市| 博爱县| 灵山县| 琼中| 梁平县| 久治县| 孟村| 靖宇县| 舟山市| 大埔县| 达州市| 贵阳市| 新乡县| 高邮市| 鄂尔多斯市| 武宁县| 临颍县| 长宁区| 富川| 岑巩县| 阳谷县| 高要市| 北票市| 彰化市| 虞城县| 富蕴县| 鄂州市| 鹤岗市| 久治县|