KTCC 0.5.0
-
KTCC has improved a lot in a few days.
Now it features an almost complete preprocessor, and can generate right code for a lot of new use cases including:- Fixed-sized arrays
- Reference pointer of local variables
- Structure value-type (non reference) semantics
- Allow mutating function parameters (that previously were immutable)
- Function callbacks
- And much more
-
The preprocessor already preprocesses correctly:
- https://raw.githubusercontent.com/soywiz/ktcc/master/samples/minimp3.c
- https://raw.githubusercontent.com/nothings/stb/master/stb_image.h
Code generation is almost finished. Now most of the work should be fixing minor stuff and unsigned arithmetic.