| ▲ | chvid 3 hours ago | |||||||
100.000 lines of code for something that is literally a text book task? I guess if it only created 1.000 lines it would be easy to see where those lines came from. | ||||||||
| ▲ | blibble a minute ago | parent | next [-] | |||||||
indeed a working C compiler is literally in my "teach yourself C in 24 hours" book from 30 years ago | ||||||||
| ▲ | falcor84 3 hours ago | parent | prev | next [-] | |||||||
> literally a text book task Generating a 99% compliant C compiler is not a textbook task in any university I've ever heard of. There's a vast difference between a toy compiler and one that can actually compile Linux and Doom. From a bit of research now, there are only three other compilers that can compile an unmodified Linux kernel: GCC, Clang/LLVM and Intel's oneAPI. I can't find any other compiler implementation that came close. | ||||||||
| ||||||||
| ▲ | anematode 3 hours ago | parent | prev | next [-] | |||||||
A simple C89 compiler is a textbook task; a GCC-compatible compiler targeting multiple architectures that can pass 99% of the GCC torture test suite is absolutely not. | ||||||||
| ▲ | wmf 3 hours ago | parent | prev [-] | |||||||
This has multiple backends and a long tail of C extensions that are not in the textbook. | ||||||||