3 ms·
I think that having an "almost" C compiler is a trick they use to minimize the size of the codebase.
by GTP 1y ago
I think that having an "almost" C compiler is a trick they use to minimize the size of the codebase.
- vdupras 1y agoYes, this is it. A C compiler in 50 kilobytes of code is pretty innovative. It's also doesn't lie about the "almost". It's really almost C. It's just that C's stdlib is POSIX centric and doesn't fit Forth well, so it's not implemented as is.
- yencabulator 1y agoTCC is 100 kB, already exists, and is a real C compiler (+preprocessor+assembler+linker). It can build Linux too! https://bellard.org/tcc/ https://bellard.org/tcc/
- vdupras 1y ago100kb binary. I'm talking about source code size. TinyCC's source is 1400kb in size.