aboutsummaryrefslogtreecommitdiff
path: root/BinaryEncoding.md
diff options
context:
space:
mode:
authortitzer <titzer@google.com>2015-08-18 18:34:07 +0200
committertitzer <titzer@google.com>2015-08-18 18:34:07 +0200
commit80378e1ca825238c967b915cef3db6e6eb8ab2d6 (patch)
tree85b261e247ae81ff08d45fde82af2a3f94aec10c /BinaryEncoding.md
parent0d148a33b2cf79289770b4c7f5b869955e24c258 (diff)
parent5d3dbeb2cb57eb5e086d4da3f95e22c5fa83d27c (diff)
downloadnanowasm-design-80378e1ca825238c967b915cef3db6e6eb8ab2d6.tar.gz
Merge pull request #301 from WebAssembly/add_data_se
Add data segments to binary format
Diffstat (limited to 'BinaryEncoding.md')
-rw-r--r--BinaryEncoding.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/BinaryEncoding.md b/BinaryEncoding.md
index ddc6923..a25e2a3 100644
--- a/BinaryEncoding.md
+++ b/BinaryEncoding.md
@@ -98,8 +98,12 @@ Yes:
* Type ID
* Count of locals
+ The serialized AST
+ * A `data` section contains
+ - A sequence of byte ranges within the binary and corresponding addresses in the linear memory
+
All strings are encoded as null-terminated UTF8.
+Data segments represent initialized data that is loaded directly from the binary into the linear memory when the program starts (see [modules](Modules.md#initial-state-of-linear-memory)).
## Serialized AST