Flame.C is an experimental C front-end for the Flame compiler framework, written from the ground up in D#.
It is still very much a work in progress. Currently, only the most primitive C features are supported, with basic utilities, like proper string handling, union types and a standard library still missing.
cin is a C compiler that leverages Flame.C and the rest of the Flame framework.
cin uses the same interface as dsc, Flame's D# compiler. Compiling 'Struct.c' (as found somewhere in the 'Tests' folder) for the CLR platform can be accomplished by invoking cin with:
cin Struct.c -platform CLR
C code can be compiled to any target platform supported by Flame. Currently, two back-ends are functional enough to be used by cin in a somewhat reliable manner:
- CLR (.Net framework)
- C++
Other back-ends are also available, but are unlikely to function correctly.