4 ms·
The last attempt I'm aware of was over a decade ago now, at the time there was some interest in building the system (kernel+userland) with pcc (Portable C Compi
by brynet 4y ago
The last attempt I'm aware of was over a decade ago now, at the time there was some interest in building the system (kernel+userland) with pcc (Portable C Compiler), ultimately LLVM/clang won out in the end.
https://undeadly.org/cgi?action=article;sid=20091228231142 https://undeadly.org/cgi?action=article;sid=20091228231142
- sylware 4y agoso mostly clang then gcc. Totally unable to compile without such grotesquely and absurdely massive c++ coded compilers like linux. sad.
- mhd 4y agoWell, projects like the BSDs need a lot of platform support, where even LLVM is still lacking. You wouldn’t want a different compiler for each arch. There simply aren’t that many candidates.
- sylware 4y agoeat the bullet: cleanup syscalls, write a full kernel using risc-v assembly with a conservative usage of the preprocessor. Get done with compilers for good... and only for that it would be even worth maintaining full assembly code for the few major ISAs and a generic C implementation which compiles with naive, small and simple C compilers and certainly not gcc or clang. I know what to do now.