Article View: comp.os.linux.misc
Article #1956Re: Substantive Comments Please: GCC vs. LLMV
From: Chris Ahlstrom
Date: Sun, 01 Nov 2026 15:07
Date: Sun, 01 Nov 2026 15:07
36 lines
2878 bytes
2878 bytes
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. As far as hardware support and C go, I have nothing to add. So sue me. -- I wasn't kissing her, I was whispering in her mouth. -- Chico Marx
Technical Details
Message-ID:
<11c7kmg$22g7e$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>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: Sun, 1 Nov 2026 10:07:03 -0500 Organization: None Lines: 36 Message-ID: <11c7kmg$22g7e$1@dont-email.me> References: <18e37e973e22a7a6$1$3179723$802601b3@news.usenetexpress.com> Reply-To: OFeem1987@teleworm.us Injection-Date: Sun, 01 Nov 2026 15:09:05 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2179310"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/D0/iNtjDmk5/yz0yZhI6j"; posting-host="732ddcbcb2aded424b07674c69627f03" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:OMJlfIqxg3dBumI6vDhVq0E0Fyc= sha256:GyZNDl+PHIGrzXcqRfSed3uVohtDGQhepa3lXXvnTdM= sha1:P5S9owmvlqKQ5UE9w3izTQh8r/w= sha256:YB3VgiDsbRSQTxJxZtxzDpEF+qAmNFu6NnqvbHQRBhE= X-Mutt: The most widely-used MUA 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-User-Agent: Microsoft Outl00k, Usenet K00k Editions X-Slrn: Why use anything else?