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

  • 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
主站蜘蛛池模板: 曲阜市| 太保市| 龙里县| 土默特右旗| 任丘市| 社旗县| 于田县| 大竹县| 墨竹工卡县| 恩施市| 贵阳市| 拉萨市| 通山县| 长治县| 稻城县| 滨海县| 斗六市| 南丰县| 扎兰屯市| 广安市| 七台河市| 泰和县| 九龙县| 漾濞| 克什克腾旗| 武清区| 南昌市| 阿克陶县| 郑州市| 莱阳市| 大名县| 安达市| 丰原市| 丽水市| 东阳市| 商丘市| 桑植县| 平顺县| 宁陵县| 鞍山市| 从化市|