C2 just reached another milestone: completely building a (static) library and genarting the c header file!
The library itself is created by generating c-files and a makefile and then running the makefile. This is of course not the final path, but will definately help in fleshing out more details. Also I extended the unit-test framework to test generated C files easily.
One detail that came up was the name 'mangling'. The generated names of module.decl used to be
__module_decl. But the linker couldn't find these in the static library. So the mangling now just consists of
module_decl, also a bit easier on the eyes.
The next step will be playing with the options to control object visibility.