diff --git a/docs/bytecode.md b/docs/bytecode.md index e3dafec..c9b5a22 100644 --- a/docs/bytecode.md +++ b/docs/bytecode.md @@ -24,8 +24,9 @@ Once a JAPL source file (i.e. one with a ".jpl" extension, without quotes) has b An object file starts with the headers, namely: +- The literal string `"JAPL_BYTECODE"` (without quotes) - A 3-byte version header composed by 3 unsigned integers representing the major, minor and patch version of the compiler used to generate the file, respectively. JAPL follows the SemVer standard for versioning -- A 32 bytes hexadecimal string, pinpointing the version of the compiler down to the exact commit hash in the JAPL repository, particularly useful when testing development versions +- A 41 bytes hexadecimal string, pinpointing the version of the compiler down to the exact commit hash in the JAPL repository, particularly useful when testing development versions - An 8 byte (64 bit) UNIX timestamp (starting from the Unix Epoch of January 1st 1970 at 00:00), representing the date and time when the file was created - A 32 bytes SHA256 checksum of the source file's contents, used to track file changes