4 ms·
None of the tiny self-compiling C compilers could possibly used to compile xv6, as none of them implement structures (arguably the hardest part of compiling C c
by webkike 12y ago
None of the tiny self-compiling C compilers could possibly used to compile xv6, as none of them implement structures (arguably the hardest part of compiling C code).
- lamacase 12y agoThe guy who did the C4 compiler also has a more fully featured one that does support structures: https://github.com/rswier/swieros/blob/master/root/bin/c.c https://github.com/rswier/swieros/blob/master/root/bin/c.c It's part of an OS he's building based on xv6
- webkike 12y agoVery cool, although this implementation is significantly less trivial than C4. The difference is over a thousand lines!
- deleted 12y ago[deleted]
- deleted 12y ago[deleted]