Added headers

This commit is contained in:
Nocturn9x 2021-10-20 16:25:56 +02:00
parent 9580dc3745
commit a75342d27b
1 changed files with 2 additions and 1 deletions

View File

@ -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