aboutsummaryrefslogtreecommitdiff
path: root/BinaryEncoding.md
diff options
context:
space:
mode:
authorMichael Holman <michael.holman@microsoft.com>2015-06-29 09:07:36 -0700
committerMichael Holman <michael.holman@microsoft.com>2015-06-29 09:07:36 -0700
commit2ebd97b2676fc036ff869a514f364437aece5a69 (patch)
tree34d2ebcf29e4c27636d01fd21178f6b7f4cd76b4 /BinaryEncoding.md
parent22b9b9c7ce06aeab5873974f829a4909a356179b (diff)
downloadnanowasm-design-2ebd97b2676fc036ff869a514f364437aece5a69.tar.gz
add opcode definitions section
Diffstat (limited to 'BinaryEncoding.md')
-rw-r--r--BinaryEncoding.md12
1 files changed, 9 insertions, 3 deletions
diff --git a/BinaryEncoding.md b/BinaryEncoding.md
index 33d296e..ab77f30 100644
--- a/BinaryEncoding.md
+++ b/BinaryEncoding.md
@@ -72,13 +72,19 @@ Yes:
* A section contains:
* a header followed by
* the section contents (specific to the section type)
+* An opcode definitions section contains:
+ * the generic section header
+ * a table containing, for each opcode-space, it's type, offset (within the section), sorted by offset, followed by
+ * a sequence of opcode tables
+ * An opcode table contains:
+ * a sequence of standardized string literals, where order determines opcode index
* A code section contains:
* the generic section header
* a table containing, for each function, it's signature, offset (within the section), sorted by offset, followed by
* a sequence of functions
-* A function contains:
- * a table containing, for each type, how many locals are indexed by the function body of that type
- * the serialized AST
+ * A function contains:
+ * a table containing, for each type, how many locals are indexed by the function body of that type
+ * the serialized AST
## Serialized AST