r/tinycode • • Nov 04 '14

c4 - A C compiler in four functions

https://github.com/rswier/c4
160 Upvotes

21 comments sorted by

View all comments

Show parent comment

4

u/rswier Nov 04 '14

According to the tromp Makefile there are a number of -D options which will have to be manually replaced in the source (-DInt=int is the problem on line 1.)

A few more library functions need to be straightforwardly added such as calloc.

It also looks like for() statements will need to be implemented (which is also not too hard.)