Overview

Download

History

Notes

Compiler



Starting from 2020 march 31., a stand-alone C compiler is also part of the Dawn package.

Previously, to build C programs for the SUBLEQ architecture, the Dawn operating system had to be used to develop the software. Now it is possible to develop and compile these C programs for the SUBLEQ architecture from conventional (Linux or Windows) environments. The compiler is the same compiler as the compiler in Dawn.

The binary files compiled with this compiler can be executed under Dawn, but they also can be executed on bare-bone environment, if operating system API calls are not being used. The supports most of the C99 standards with some minor limitations.


The compiler requires the following:

-A fast (4 GHz or faster) CPU

-1 GByte free RAM

-1 GByte disk space




The compiler supports:

-Standard C and C99 syntax

-Function declarations and function calls

-8, 16, 32 (uint32_t and int32_t) and 64 bit integers

-int and long is 64 bit

-if, else, loop, goto, while, for

-inline functions

-Automatic code optimization and code stripping

-float and double data type (actually, its 32.32 fixed point)

-Multi-dimension arrays and pointers

-Dereferencing

-Defines and Ifdefs

-Signed and unsigned numbers

-Includes

-Most of stdio functionality (snprintf, atoi, etc)

-Conventional IO functions (fopen, etc)

-Basic string functions

-Basic mathematic functions

-Relocation tables

-Decimal, binary and hexadecimal numbers

-Its available for free




Please note: the crosscompiler backend is currently experimental.