3 ms·
When I'm doing a new C project I usually go out of my way to make sure it compiles clean with GCC and clang. Each compiler has its strength and weaknesses. GC
by stusmall 9y ago
When I'm doing a new C project I usually go out of my way to make sure it compiles clean with GCC and clang. Each compiler has its strength and weaknesses. GCC tends to produce faster code in some situations where clang has great static code analysis tools and asan is amazing. I've heard GCC has made major improvements in build speed since the last time I've started a new C project from scratch but that used to be on my list of reasons too.
C can be a hard to wrangle beast and the more checks I have on my code quality the better I sleep at night.
- uep 9y agoAt least from the outside, GCC asan seems comparable to clang's right now. I haven't done back-to-back checking to see if clang finds things it doesn't. I haven't really used the undefined and thread sanitizers though.
- stusmall 9y agoOh wow. That's exciting news. My current job doesn't have me doing any C so I haven't been following the releases as closely as I used to.