-
Notifications
You must be signed in to change notification settings - Fork 9
Targeting a Compiler for Tagha and Tagha's Specifications
The Tagha Runtime Environment is not meant to be tied down to a single compiler. Similar to how C and C++ have many compilers for them. Tagha is only meant to be a minimal runtime that has the bare bones environment necessary to run bytecode compiled from C code.
-
doubleandlong doubleshould always be 8 bytes in data size. -
floatanddoubleare as defined by the IEEE. -
long,size_t, andlong longshould be 8 bytes in size. -
all binary math operations assume both operands are the same size.
-
argcandargvare implementation-defined for Tagha, somaincould have any type of parameters as necessary to script devs. -
if
argvcontains pointers that are not owned by the script's memory allocator, then the VM will throw a runtime exception if the bytecode dereferences them. Keep this in mind when passing objects to the scripts. A workaround for this is to allocate from the script's own runtime heap, copy data to it, and pass that tomain.