From 2ebd97b2676fc036ff869a514f364437aece5a69 Mon Sep 17 00:00:00 2001 From: Michael Holman Date: Mon, 29 Jun 2015 09:07:36 -0700 Subject: add opcode definitions section --- BinaryEncoding.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'BinaryEncoding.md') 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 -- cgit v1.2.3