|
|
Subscribe / Log in / New account

C, still?

C, still?

Posted Sep 20, 2017 14:38 UTC (Wed) by aaron (guest, #282)
In reply to: C, still? by ncm
Parent article: Building the kernel with Clang

Redox is over there. -->


to post comments

C, still?

Posted Sep 21, 2017 13:41 UTC (Thu) by adobriyan (subscriber, #30858) [Link]

kernel.h, math64.h and slab.h are good examplse why even basic function overloading will move kernel to the next level.

I never realized how stupid the decision to ban struct comparisons while allowing struct assignments is until trying to compile kernel with C++ compiler.

Say, it is possible to annotate non-null pointers by switching to references and lose nothing.

But no, we continue to do it the hard way because kernel programming is supposed to be hard, right?

Right?


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds