3 ms·
GCC is still dominant in the desktop Linux world and embedded. But Clang is the default compiler for: - Apple platforms - Android (at least for the NDK used
by comex 7y ago
GCC is still dominant in the desktop Linux world and embedded. But Clang is the default compiler for:
- Apple platforms
- Android (at least for the NDK used by third-party developers)
- PS4
- Nintendo Switch
- WebAssembly (there's no official "default", but GCC doesn't support it)
- eBPF (at least, GCC didn't support it until a few months ago)
Oh, and Google uses Clang to build Chromium for all of its supported platforms (Windows, Mac, Linux).
- pjmlp 7y agoAndroid is fully clang nowadays, Google's fork of Linux kernel has been cleaned from GCC dependencies. There were a couple of talks about it a couple of years ago. 2017 LLVM Developers’ Meeting: “Compiling Android userspace and Linux kernel with LLVM", https://www.youtube.com/watch?v=6l4DtR5exwo https://www.youtube.com/watch?v=6l4DtR5exwo "LPC2018 - Clang+Linux", https://www.youtube.com/watch?v=SSWUrWqnSz0 https://www.youtube.com/watch?v=SSWUrWqnSz0 EDIT: typo and link for the mentioned talks.