Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The file you linked is 200KB.

OTCC is <4KB. It's admittedly using tiny names to squeeze under a size limit, but even when you correct for that it's a lot smaller.

(Edit: At the time of submission the link went to https://github.com/oriansj/stage0/blob/master/Linux%20Bootst... with a description of "World's Smallest C Compiler")



Yes that is the size of the source code with comments, the binary is less than 15KB


That's significantly larger than the OTCC binary.


OTCC's binary is more than 22KB Thus OTCC is larger


...no it's not. The binary compiled by the elf version is 9KB.


It's entirely possible you're both right -- different compilers and different environments will produce different results.

So instead of arguing back and forth, it would be more helpful for others reading your comments if you provided full information about the conditions under which those sizes were achieved.


I'm talking about the official one linked on the page.

The one that's self-compiled, so it shouldn't vary much if at all.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: