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

Language concepts

The Core Specification states WebAssembly encodes a low-level, assembly-like programming language. The specification defines the structure, execution, and validation of this language as well as the details of the binary and text formats. The language itself is structured around the following concepts:

  • Values, or rather value types that WebAssembly provides
  • Instructions that are executed within the stack machine
  • Traps produced under error conditions and abort execution
  • Functions into which code is organized, each of which takes a sequence of values as parameters and returns a sequence of values as a result
  • Tables, which are arrays of values of a particular element type (such as function references) that are selectable by the executing program
  • Linear Memory, which is an array of raw bytes that can be used to store and load values
  • Modules, WebAssembly binary (.wasm file) that contains function, tables, and linear memories
  • Embedder, the mechanism by which WebAssembly can be executed in a host environment, such as a web browser

Functions, tables, memory, and modules have direct correlations with the JavaScript API and are important to be aware of. These concepts describe the underlying structure of the language itself and how to write or encode WebAssembly. With regard to usage, understanding the corresponding semantic phases of WebAssembly provides a complete definition of the technology:

Language concepts and their relationship
主站蜘蛛池模板: 兴海县| 东乡族自治县| 石家庄市| 越西县| 西乡县| 同仁县| 隆林| 余庆县| 蒲江县| 西平县| 汪清县| 舞钢市| 和顺县| 任丘市| 连州市| 沾化县| 龙江县| 修文县| 尚义县| 滕州市| 方山县| 长岛县| 剑阁县| 白城市| 建阳市| 九龙县| 文水县| 托里县| 海林市| 黄冈市| 大兴区| 洛隆县| 潞西市| 宜宾市| 曲麻莱县| 阜平县| 三原县| 南昌县| 渝中区| 卢龙县| 临安市|