Hacker News new | ask | show | jobs
by nn3 1016 days ago
Just for comparison the LOCs for some other small C or C like compilers. It's not that far away from Ritchie's

C4x86 | 0.6K (very close)

small C (x86) | 3.1K

Ritchie's earliest struct compiler | 2.3K

v7 Unix C compiler | 10.2K

chibicc | 8.4K

Biederman's romcc | 25.0K

2 comments

This one is certainly stretching the definition of "C like", but it's just under 512 bytes : https://news.ycombinator.com/item?id=36064971
Oh, C4 is neat—technically it has me beat since it also implements the VM to run the code—though their formatting definitely takes advantage of long lines :-)