🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #1957

Re: Substantive Comments Please: GCC vs. LLMV

#1957
From: Nuno Silva
Date: Sun, 01 Nov 2026 18:31
40 lines
2822 bytes
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?

> As far as hardware support and C go, I have nothing to add.
> So sue me.

-- 
Nuno Silva
Technical Details
Message-ID: <11c80ic$26et9$4@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <18e37e973e22a7a6$1$3179723$802601b3@news.usenetexpress.com> <11c7kmg$22g7e$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Nuno Silva <nunojsilva@invalid.invalid>
Newsgroups: comp.os.linux.misc
Subject: Re: Substantive Comments Please: GCC vs. LLMV
Date: Sun, 01 Nov 2026 18:31:39 +0000
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <11c80ic$26et9$4@dont-email.me>
References: <18e37e973e22a7a6$1$3179723$802601b3@news.usenetexpress.com>
	<11c7kmg$22g7e$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sun, 01 Nov 2026 18:31:40 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2309033"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+e+bUXM/lvXubjspv9wYKK"; posting-host="77ad5ff0a7d24daf1d277eb09b698b34"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Cancel-Lock: sha1:rJ7Bjg1S5+8zfMJ4XyRLZR6FKHM= sha256:zu/nN+Wiwp8G6kinTXtgIp3ejHd6X14/7rNePmX/RoQ=
	sha1:iDKon2ALL/qMqFnq8+dT67d3Bcs= sha256:MrEgMKN11oaSVuggfF5PDK+gXjFJ9uw7fiMpx2E/voI=