From 81c5f8e750fcda6a2451fb54604130431434f88f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 17 Aug 2019 02:57:08 +0200 Subject: Implement more instructions, implement function parameters and arguments --- doc/Documentation.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') 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 | -- cgit v1.2.3