3 ms·
For the purposes of linux kernel, there's essentially a custom superset of C that is defined as "right" for linux kernel, and there are maintainers responsible
by p_l 2y ago
For the purposes of linux kernel, there's essentially a custom superset of C that is defined as "right" for linux kernel, and there are maintainers responsible for maintaining it.
While GCC with few basic flag will, in general, produce binary that cooperates with kernel, kbuild does load all those flags for a reason.
- CRConrad 2y ago> For the purposes of linux kernel, there's essentially a custom superset of C that is defined as "right" for linux kernel Superset? Or subset? I'd have guessed the latter.
- p_l 2y agoSuperset. ANSI/ISO C is not a good language to write a kernel in, because the standards are way more limiting than some people would think - and leaves a lot to implementation. So it's a superset in terms of what's defined