Hacker News new | ask | show | jobs
by umanwizard 2306 days ago
Gcc is still the default on GNU/Linux systems which are orders of magnitude more mainstream than FreeBSD.
2 comments

Not on Android, which is an order of magnitude more mainstream than any other Linux distribution.
So what? Clang under OSX compiling both OSX and iOS projects is far more widespread.
On computers-with-keyboards, maybe, probably even.

On a per-kernel basis, absolutely not, even before we consider Androids.

Google uses Clang to build the kernel for Android.
Which is interesting but hardly relevant.

To quote:

> > Gcc is still the default on GNU/Linux systems which are orders of magnitude more mainstream than FreeBSD.

> So what? Clang under OSX compiling both OSX and iOS projects is far more widespread.

I'm asserting that there are more Linux kernels compiled under GCC than there are OSX kernels running Clang (so macOS) compiling OSX and iOS projects.

I think that's on pretty solid ground.

Clang is required for all of Android including Linux kernels going forward. Once devices start to age out, this will tip over time.
It doesn't increase the number of macOS kernels, or decrease the number of Linux servers (including virtualized ones, which seems fair), so I doubt it tips the balance.

All I'm saying is that, because of servers, there are more GCC'ed Linux kernels than there are Clang'ed macOS kernels, and this will probably remain true indefinitely.

If AWS starts Clangin' on their Linux kernels, then maybe not. The trend toward Clang is pretty clear at this point; could happen.

> The Android and ChromeOS Linux distributions have moved to building their Linux kernels with Clang, and Google is currently testing Clang built kernels for their production Linux kernels."

https://en.wikipedia.org/wiki/List_of_products_based_on_Free...

You have no idea how many places FreeBSD actually runs in.