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

  • 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
主站蜘蛛池模板: 沛县| 天祝| 五大连池市| 庄河市| 昌黎县| 辉南县| 如东县| 兴和县| 太仆寺旗| 牡丹江市| 滁州市| 罗山县| 五台县| 皋兰县| 阳山县| 登封市| 大名县| 龙山县| 松潘县| 保靖县| 维西| 碌曲县| 武夷山市| 河北省| 晋宁县| 凤山市| 三明市| 利辛县| 常宁市| 涪陵区| 叙永县| 沙坪坝区| 新郑市| 凤山县| 大余县| 六盘水市| 南召县| 遂昌县| 昆明市| 长子县| 昭觉县|