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

  • 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
主站蜘蛛池模板: 通城县| 罗甸县| 连南| 江源县| 朔州市| 墨脱县| 新邵县| 河东区| 通江县| 上高县| 阳泉市| 洛川县| 桂阳县| 普兰店市| 突泉县| 淳化县| 阿拉善盟| 新蔡县| 山丹县| 怀安县| 云和县| 增城市| 晋江市| 连平县| 佛冈县| 建平县| 秭归县| 芮城县| 保靖县| 鹤岗市| 巴塘县| 龙川县| 道孚县| 凌云县| 雷州市| 徐闻县| 泰顺县| 平湖市| 正定县| 绥芬河市| 张家港市|