Article View: comp.os.linux.misc
Article #1972Re: Substantive Comments Please: GCC vs. LLMV
From: Chris Ahlstrom
Date: Mon, 02 Nov 2026 16:54
Date: Mon, 02 Nov 2026 16:54
45 lines
3264 bytes
3264 bytes
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
Technical Details
Message-ID:
<11cafc8$31pdt$1@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-mailReferences:
<18e37e973e22a7a6$1$3179723$802601b3@news.usenetexpress.com> <11c7kmg$22g7e$1@dont-email.me> <11c80ic$26et9$4@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: Chris Ahlstrom <OFeem1987@teleworm.us> Newsgroups: comp.os.linux.misc Subject: Re: Substantive Comments Please: GCC vs. LLMV Date: Mon, 2 Nov 2026 11:54:39 -0500 Organization: None Lines: 45 Message-ID: <11cafc8$31pdt$1@dont-email.me> References: <18e37e973e22a7a6$1$3179723$802601b3@news.usenetexpress.com> <11c7kmg$22g7e$1@dont-email.me> <11c80ic$26et9$4@dont-email.me> Reply-To: OFeem1987@teleworm.us Injection-Date: Mon, 02 Nov 2026 16:56:41 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3204541"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+t9sYclxcMfduU5jMw5GMB"; posting-host="a55681a094a718401814e67417e6b726" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:Ng+GjFAME3Z7IgzoaSRLzhxGoOk= sha256:H70hhixKE1jRICip9aAWuflzqPwYY9HXCG7Ko3bHLkw= sha1:/teKAERCAQfxXvNcULLt80HTBoI= sha256:B6ORIe7bD0rNKSUBiYCE+unNEh0IXqjEdvPs3s/eS44= X-Face: 63n<76,LYJQ2m#'5YL#.T95xqyPiG`ffIP70tN+j"(&@6(4l\7uL)2+/-r0)/9SjZ`qw= Njn mr93Xrerx}aQG-Ap5IHn"xe;`5:pp"$RH>Kx_ngWw%c\+6qSg!q"41n2[.N/;Pu6q8?+Poz~e A9? $6_R7cm.l!s8]yfv7x+-FYQ|/k X-Mutt: The most widely-used MUA X-Slrn: Why use anything else? X-User-Agent: Microsoft Outl00k, Usenet K00k Editions