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

  • 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
主站蜘蛛池模板: 邓州市| 遵义县| 佳木斯市| 肇东市| 阿拉善左旗| 凤翔县| 德兴市| 呼伦贝尔市| 赣榆县| 临夏市| 安塞县| 怀集县| 祁门县| 中方县| 定西市| 宜宾市| 昌江| 邵东县| 蓬安县| 临潭县| 黄大仙区| 平遥县| 昭苏县| 天柱县| 遵义县| 克东县| 洪湖市| 房山区| 台前县| 绵竹市| 南和县| 嵊州市| 喀喇沁旗| 安阳县| 麻阳| 宁夏| 镇康县| 孝义市| 淄博市| 搜索| 宝兴县|