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

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
主站蜘蛛池模板: 临漳县| 炉霍县| 宁远县| 宝山区| 永德县| 凤城市| 安图县| 平罗县| 乌兰浩特市| 苏州市| 邳州市| 迁西县| 石嘴山市| 海淀区| 铁力市| 辽源市| 海安县| 花莲市| 延川县| 兴业县| 临颍县| 兴化市| 高陵县| 周口市| 保康县| 游戏| 连州市| 阜城县| 常宁市| 京山县| 西和县| 鄂伦春自治旗| 伽师县| 桦南县| 兖州市| 武功县| 苗栗市| 青浦区| 原平市| 延庆县| 沁源县|