|
|
|
2.5.8 Data Segments The initial contents of a are zero bytes. Data segments can be used to initialize a range of memory from a static of The component of a module defines a vector of data segments. Like element segments, data segments have a mode that identifies them as either passive or active . A passive data segment’s contents can be copied into a memory using the instruction. An active data segment copies its contents into a memory during , as specified by a and a defining an offset into that memory. ::= ::= | Data segments are referenced through Note: In the current version of WebAssembly, at most one memory is allowed in a module. Consequently, the only valid is 0 . 2.5.9 Start Function The component of a module declares the of a start function that is automatically invoked when the module is , after and have been initialized. ::= Note: The start function is intended for initializing the state of a module. The module and its exports are not accessible before this initialization has completed. 2.5.10 Exports The component of a module defines a set of exports that become accessible to the host environment once the module has been ::= ::= | | | Each export is labeled by a unique . Exportable definitions are , and which are referenced through a respective descriptor. Conventions The following auxiliary notation is defined for sequences of exports, filtering out indices of a specific kind in an order-preserving fashion: • ) = [ | ∈ * ] • ) = [ | ∈ * ] • ) = [ | ∈ * ] • ) = [ | ∈ * ] 2.5. Modules 23 |