Skip to content

Add compiled quickfall format #29

Closed
@Zffu

Description

@Zffu

Add a special format which is compiled down to the assembly level.

Format specification

The file will be encoded in bytes and not string and will be made up of compiled nodes that will have the following structure:

Field name Field type Field size (in bytes) Description
Node Type Byte 1 Determines the internal node type
Node name length Integer 4 The length of the node name buffer in bytes
Node name char[] defined with Node name length The node name buffer
Type buffer length Integer 4 Determines the size of the type / special buffer.
Type / special buffer byte[] Determined by the type buffer length. Stores special properties such as type determinations.
ASM buffer length Integer 4 The length of the ASM buffer of the node. Only present if the node type determines it.
ASM buffer byte[] defined with ASM buffer length The ASM node buffer. Only present if the node type determines it.

Benefits

This format will mostly benefit the usage of the std library. Currently when using any component of the lib, it needs to compile it, however, using the compiled quickfall format, the standart library will be already compiled allowing for a way better usage of the standart lib.

Metadata

Metadata

Assignees

Labels

compilerSignifies a compiler change.stdlib

Type

No type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions