diff options
| author | titzer <titzer@google.com> | 2016-02-11 15:45:44 +0100 |
|---|---|---|
| committer | titzer <titzer@google.com> | 2016-02-11 15:45:44 +0100 |
| commit | 2f64313c57309d2c21ab07ef47ad7403da56fd4b (patch) | |
| tree | a55942dd098ffcc43a5ead3cccbae7647c29d767 /BinaryEncoding.md | |
| parent | acab7ac6a768872f46d24dfeb3358804df49a403 (diff) | |
| download | nanowasm-design-2f64313c57309d2c21ab07ef47ad7403da56fd4b.tar.gz | |
Update BinaryEncoding.md
Diffstat (limited to 'BinaryEncoding.md')
| -rw-r--r-- | BinaryEncoding.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/BinaryEncoding.md b/BinaryEncoding.md index e885a57..9f42f61 100644 --- a/BinaryEncoding.md +++ b/BinaryEncoding.md @@ -31,6 +31,9 @@ implementations. # Data types +### int8 +A single-byte signed integer. + ### uint8 A single-byte unsigned integer. @@ -201,8 +204,8 @@ stored to from dedicated instructions. Function bodies consist of a dense pre-order encoding of an [Abstract Syntax Tree](AstSemantics.md). Each node in the abstract syntax tree corresponds to an operator, such as `i32.add` or `if` or `block`. -Most operators encode as a single `uint8`, but some require *immediates* which immediately follow the -first byte, before the child nodes. +Operators are encoding by an opcode byte followed by immediate bytes (if any), followed by children +nodes (if any). ## Control flow operators ([described here](AstSemantics.md#control-flow-structures)) |
