Article View: comp.os.linux.misc
Article #1937Re: Substantive Comments Please: GCC vs. LLMV
From: jayjwa
Date: Sat, 31 Oct 2026 14:30
Date: Sat, 31 Oct 2026 14:30
31 lines
2376 bytes
2376 bytes
Leroy H <lh@somewhere.net> writes:
> 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).
Clang whines alot on perfectly good code, but some of the graphics stuff
requires it. I think Mesa and also AMD ROCm. They have a special
LLVM/Clang needed for ROCm:
/opt/rocm/lib/llvm/bin/clang --version
AMD clang version 24.0.0git (https://github.com/ROCm/llvm-project.git d6f6cb691863e9258034ab48c1dfce21689d5606)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm/lib/llvm/bin
Configuration file: /opt/rocm/lib/llvm/bin/clang.cfg
If you're not building such things, you probably don't need it. I hear
the LLVM license is more permissive, though that doesn't affect me.
Rarely, I've had some things not build with GCC that did build with
Clang. With today's disk sizes, it's easy to keep both handy. I have a
very strong development environment here: between Linux and the virtual
machines hosts under it (and illumos), you'd have a hard time naming a
language I don't have access to. SNOBOL? Yeah, got that.
> Basically, which compiler is truly "better?"
Use case of course. But you knew that already.
--
PGP Key ID: 781C A3E2 C6ED 70A6 B356 7AF5 B510 542E D460 5CAE
"The Internet should always be the Wild West!"
Technical Details
Message-ID:
<8733tmaqnk.fsf@atr2.ath.cx>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.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!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: jayjwa <jayjwa@atr2.ath.cx.invalid> Newsgroups: comp.os.linux.misc Subject: Re: Substantive Comments Please: GCC vs. LLMV Date: Sat, 31 Oct 2026 10:30:39 -0400 Organization: Atr2 RG 2026 Message-ID: <8733tmaqnk.fsf@atr2.ath.cx> References: <18e37e973e22a7a6$1$3179723$802601b3@news.usenetexpress.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: solani.org; logging-data="740022"; mail-complaints-to="abuse@news.solani.org" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:LcJjaIrHctDvbAZw9SN4Vo5bQn4= sha1:UQH5IaeOQnbhKB4IrWkk57CvG1w= X-User-ID: eJwFwYEBACAEBMCVUv9oHMT+I3THo6JlUCo4HDDL8jKu03slqiYE9Hl7B6xf9RJvyp44IR8m7xGK