3 ms·
of course this isn't the smallest C compiler, it's 5000 lines of code. There is a 500 line C compiler written in C. But perhaps it's the smallest if we count t
by rain1 7y ago
of course this isn't the smallest C compiler, it's 5000 lines of code. There is a 500 line C compiler written in C.
But perhaps it's the smallest if we count transitive dependencies! (by this I mean count the lines of code of the program, and every program you need to build the program and everything you need to build them and so on)
- reidrac 7y ago"[..]only have the goal of creating a bootstrapping path to a C compiler capable of compiling GCC, with only the explicit requirement of a single 1 KByte binary or less." I believe the "size" refers to the binary size of the compiler.
- sctb 7y agoWe've updated the title from the editorialized “World's Smallest C Compiler”.
- rain1 7y agoWhy are people downvoting this comment?
- kragen 7y agoBecause Hacker News is largely populated by "finance-obsessed man-children and brogrammers", in JWZ's memorable phrase, whose votes it unfortunately weighs as highly as yours, mine, or oriansj's.