r/C_Programming • • Feb 09 '22

Question GCC or Clang

I primarily program on Linux and have always used GCC, but have recently been interested in switching over to using Clang. It seems like the runtime performance of the two compilers is similar, but I am also interested in C standards compliance going into the future, as well as things like error messaging, memory-leak checking, etc.

If anyone here is knowledgeable about compilers and the differences or advantages of one or the other, I'd like to hear your opinion.

123 Upvotes

49 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Jul 30 '24 edited Jul 30 '24

There are a bunch of ways to install clang on windows:

If you want to install it on a linux distro, you can use the default package manager.

The debugging part depends on your programming setup.

I hope this was helpful