Nuno Silva wrote this screed in ALL-CAPS (fixed):
> On 2026-11-01, Chris Ahlstrom wrote:
>
>> Leroy H wrote this screed in ALL-CAPS (fixed):
>>
>>> I should have, but I have never seriously researched the differences
>>> and advantages/disadvantages of the GNU Compiler Collection (GCC)
>>> versus the LLVM/Clang compiler (only the C compiler interests me).
>>>
>>> All of my GNU/Linux systems are built using GCC. It has good
>>> hardware optimization options, Link Time Optimization (LTO), and
>>> even, if desired, Profile Guided Optimization (PGO).
>>>
>>> But LLVM/Clang has been around for a long while as an alternative
>>> C compiler. I have never used LLVM/Clang but others will claim
>>> benefits and advantages.
>>>
>>> To me, LLVM/Clang seems limited compared to GCC, especially in terms
>>> of SIMD hardware support, but that assessment is based on incomplete
>>> knowledge.
>>>
>>> Can anyone offer more insight into this issue?
>>>
>>> Basically, which compiler is truly "better?"
>>
>> My recent projects are set up to use either one. Clang seems to be
>> the "native" compiler on FreeBSD. GCC and Clang seem to me to be
>> comparable and somewhat supporting the same options. Clang seems
>> to increment versions more frequently. It finds some issues that
>> g++ does not find, and g++ finds some issues that clang++ does
>> not. They're roughly comparable in speed if cache is dropped
>> between builds.
>
> When you say "find issues" you mean merely in warning outputs or in
> differences owing to UB, or are you using their static analyzers?
Just looking at warnings.
Using "ninja scan-build" just now to see what happens.
--
BOFH excuse #62:
Need to wrap system in aluminum foil to fix problem