|
|
|
|
|
by feeley
1192 days ago
|
|
Author here. Just for context tinyc.c was created in 2000 (I found the file in my archives and the last modification date is January 12, 2001). I was not aware at the time of Fabrice Bellard's work which after all won the IOCCC in 2001, so the confusion with TCC was not intentional. My tinyc.c was meant to teach the basics of compilers in a relatively accessible way, from parsing to AST to code generation to bytecode interpreter. And yes it is the subset of C that is tiny, not a tiny compiler for the full C language. |
|
Either by adding complexity (more features to the compiler) or dropping complexity (fewer C features in the implementation).
Did you ever look at that?
Edit: functions, enum, struct, arrays and maybe make all variables/functions a-z?
Edit2: https://joyofsource.com/projects/bootstrappable-tcc.html
Edit3: https://news.ycombinator.com/item?id=35135384