3 ms·
The core Linux kernel is well-known and mostly well-written C.
by atq2119 7y ago
The core Linux kernel is well-known and mostly well-written C.
- ndesaulniers 7y agoI'd say "advanced" C, not necessarily "well-written" C. There's certainly a lot of C in it, and I'd bet it's the largest open source C codebase.
- cesarb 7y agoThey go beyond C, it's actually C + GCC extensions. The only reason clang can compile it (in some configurations) is that they painstakingly implemented each of the GCC extensions the kernel uses (and when they were almost done, the kernel started requiring a few more).