News for hackers. Stuff that matters.
Re:C extensions, portability, and alternative compilers by kouosi on Monday May 25, 2026 @02:45PM (#48270222)
> And of course, once your code does not target just one single machine then you're forced to have to worry about portability and standard compliance etc.

Well linux exclusively usages gcc to compile.

Re:C extensions, portability, and alternative compilers by fanf2 on Monday May 25, 2026 @03:26PM (#48270654)
Re:C extensions, portability, and alternative compilers by Maxatar on Monday May 25, 2026 @03:53PM (#48270909)
That's a good point, the more precise statement is that Linux exclusively uses gnu11 to compile.

Clang happens to implement gnu11, I think it's the only non-GCC compiler to do so.

Re:C extensions, portability, and alternative compilers by pjmlp on Tuesday May 26, 2026 @02:44AM (#48275944)
Which was largely sponsored by Google, as they removed GCC from Android, and needed to have clang compile the Linux kernel.

For a long time only Android Linux kernel downstream supported it.

Re:C extensions, portability, and alternative compilers by einpoklum on Monday May 25, 2026 @05:47PM (#48272369)
Yes, sorry, mistype, that should have been "single kind of machine" or "single operating system".