Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
For Android? Because the NDK has deprecated GCC long ago and will remove it completely with NDK r18.
-
Clang came about mostly because of licensing. GPL vs BSD/MIT/Apache is a big thing in the open source community. A lot of the former dreams about OSS died out in the early 2000s sadly.
I wrote a post about this a while ago:
https://penguindreams.org/blog/... -
@juandroid007 GCC is more monolith than Clang, which is why you can hook an IDE with IDE magic better into Clang than into GCC.
Also, Clang is said to be capable of delivering output for multiple platforms just like that while GCC has to be built for each platform. -
Personally, I prefer GCC because it comes ready-built for a lot of platforms besides Linux. MingW makes it easy on Windows, and I'm especially invested in the arm-none-eabi version, i.e. the bare metal version targeted at Cortex-M, which is hosted at the ARM website. I've yet to see a Clang equivalent.
-
@djsumdog That's a damn good read son, you just got yourself your blogpost fucking bookmarked.
I will remember these words when i release my own software. -
aritzh7536yIn the last few updates, GCC has improved A LOT its error messages, but I still prefer Clang's.
If you do any cross compilation, Clang is able to compile for any platform LLVM supports (which is most of the ones you may find), with a single executable, whereas GCC has to be recompiled for each source-target pair.
Clang's license if more free.
However, you need to install clang on most linux distros, whereas gcc is already pre-packaged. (If I remember correctly, Macs use clang as the default)
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
elgringo41Student - Teacher renaming .c to .exe make the program executable ? Teacher - Yes A group of people stand up...
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
Why use Clang over GCC?
rant
compilers
c++
c
discussion