diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Documentation.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/Documentation.md b/doc/Documentation.md index 602d0e1..3f9bd1a 100644 --- a/doc/Documentation.md +++ b/doc/Documentation.md @@ -25,6 +25,9 @@ in the next step. The last step is not done in parallel because the last step is and writing it to a file, which is an IO bottlenecked operation and it won't benefit from multithreading and may even lose performance because of it. +# Bytecode +The layout of the full bytecode is: Header (Intermediates Strings Functions Instructions)* + # Bytecode header ## Header layout |Type|Field |Description | @@ -63,6 +66,12 @@ The versions in the header only changes for every release, not every change. |u16 |Size|The size of the string, in bytes. | |u8* |Data|The data of the string, where the size is defined by @Size. Strings are null-terminated.| +# Bytecode functions +## Internal functions layout +|Type|Field |Description | +|----|-------------------|---------------------------------| +|u16 |Number of functions|The number of internal functions.| + # Bytecode instructions ## Instructions layout |Type |Field |Description | |