Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #94820 > unrolled thread

Substantive Comments Please: GCC vs. LLMV

Started byLeroy H <lh@somewhere.net>
First post2026-10-31 03:11 +0000
Last post2026-11-01 18:31 +0000
Articles 19 — 10 participants

Back to article view | Back to comp.os.linux.misc


Contents

  Substantive Comments Please: GCC vs. LLMV Leroy H <lh@somewhere.net> - 2026-10-31 03:11 +0000
    Re: Substantive Comments Please: GCC vs. LLMV Computer Nerd Kev <not@telling.you.invalid> - 2026-10-31 17:28 +1000
      Re: Substantive Comments Please: GCC vs. LLMV Leroy H <lh@somewhere.net> - 2026-10-31 13:25 +0000
    Re: Substantive Comments Please: GCC vs. LLMV jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-10-31 10:30 -0400
      Re: Substantive Comments Please: GCC vs. LLMV Leroy H <lh@somewhere.net> - 2026-10-31 15:12 +0000
      Re: Substantive Comments Please: GCC vs. LLMV rbowman <bowman@montana.com> - 2026-10-31 19:21 +0000
      Re: GCC vs. LLVM Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-10-31 21:06 +0000
        Re: GCC vs. LLVM Nuno Silva <nunojsilva@invalid.invalid> - 2026-11-01 00:39 +0000
          Re: GCC vs. LLVM rbowman <bowman@montana.com> - 2026-11-01 01:45 +0000
            Re: GCC vs. LLVM Nuno Silva <nunojsilva@invalid.invalid> - 2026-11-01 09:05 +0000
        Re: GCC vs. LLVM c186282 <c186282@nnada.net> - 2026-11-01 03:51 -0500
          Re: GCC vs. LLVM Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-11-01 02:16 -0800
            Re: GCC vs. LLVM c186282 <c186282@nnada.net> - 2026-11-01 18:01 -0500
              Re: GCC vs. LLVM Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-11-01 20:25 -0800
                Re: GCC vs. LLVM c186282 <c186282@nnada.net> - 2026-11-02 01:52 -0500
                  Re: GCC vs. LLVM Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-11-01 23:06 -0800
                    Re: GCC vs. LLVM The Natural Philosopher <tnp@invalid.invalid> - 2026-11-02 10:39 +0000
    Re: Substantive Comments Please: GCC vs. LLMV Chris Ahlstrom <OFeem1987@teleworm.us> - 2026-11-01 10:07 -0500
      Re: Substantive Comments Please: GCC vs. LLMV Nuno Silva <nunojsilva@invalid.invalid> - 2026-11-01 18:31 +0000

#94820 — Substantive Comments Please: GCC vs. LLMV

FromLeroy H <lh@somewhere.net>
Date2026-10-31 03:11 +0000
SubjectSubstantive Comments Please: GCC vs. LLMV
Message-ID<18e37e973e22a7a6$1$3179723$802601b3@news.usenetexpress.com>
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?"

[toc] | [next] | [standalone]


#94822

FromComputer Nerd Kev <not@telling.you.invalid>
Date2026-10-31 17:28 +1000
Message-ID<6ae5988a@news.ausics.net>
In reply to#94820
Leroy H <lh@somewhere.net> wrote:
> Can anyone offer more insight into this issue?
> 
> Basically, which compiler is truly "better?"

All I know is that libllvm is _huge_ and I've worked hard to avoid
installing it on systems that I try to keep small. That sort of
bloat really annoys me.

According to these speed benchmarks of different libraries built
with GCC and Clang, they're about evenly matched overall, but in
some specific cases one can be significantly faster than the other:

https://www.phoronix.com/review/gcc-16-vs-clang-22

-- 
__          __
#_ < |\| |< _#

[toc] | [prev] | [next] | [standalone]


#94842

FromLeroy H <lh@somewhere.net>
Date2026-10-31 13:25 +0000
Message-ID<18e3a01e22feead1$1680$3261087$802601b3@news.usenetexpress.com>
In reply to#94822
On 31 Oct 2026 17:28:10 +1000, Computer Nerd Kev wrote:

> 
> All I know is that libllvm is _huge_ and I've worked hard to avoid
> installing it on systems that I try to keep small. That sort of
> bloat really annoys me.
> 

In some cases it cannot be avoided.  One example is Mesa that uses
llvm for software rendering:

<https://docs.mesa3d.org/drivers/llvmpipe.html>


Firefox releases are also built with llvm which means that Mozilla
has chosen it over GCC:

<https://www.phoronix.com/news/Firefox-Clang-LTO-All-Platforms>




>
> According to these speed benchmarks of different libraries built
> with GCC and Clang, they're about evenly matched overall, but in
> some specific cases one can be significantly faster than the other:
> 
> https://www.phoronix.com/review/gcc-16-vs-clang-22
>

[toc] | [prev] | [next] | [standalone]


#94847

Fromjayjwa <jayjwa@atr2.ath.cx.invalid>
Date2026-10-31 10:30 -0400
Message-ID<8733tmaqnk.fsf@atr2.ath.cx>
In reply to#94820
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!"

[toc] | [prev] | [next] | [standalone]


#94850

FromLeroy H <lh@somewhere.net>
Date2026-10-31 15:12 +0000
Message-ID<18e3a5f62dddceda$2831$2115057$802601b3@news.usenetexpress.com>
In reply to#94847
On Sat, 31 Oct 2026 10:30:39 -0400, jayjwa wrote:

> 
> 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.
>

You also need a Rust compiler.  More and more packages now require
it.  Librsvg, which I believe is the only SVG rendering library
available for GNU/Linux, is just one example.  No Rust, no SVG.

Another C/C++ alternative would be the Intel icc compiler, which
is now part of Intel OneAPI.  The icc compiler was once quite superior
to GCC but supposedly GCC has closed the gap over the years.

[toc] | [prev] | [next] | [standalone]


#94862

Fromrbowman <bowman@montana.com>
Date2026-10-31 19:21 +0000
Message-ID<nkmtdfFftq4U3@mid.individual.net>
In reply to#94847
On Sat, 31 Oct 2026 10:30:39 -0400, jayjwa wrote:

> 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.

It now uses the Apache 2.0 license as does Clang.  Apple originally tried 
to use gcc with LLVM for Objective C. There were technical difficulties 
plus the GPL. 

[toc] | [prev] | [next] | [standalone]


#94864 — Re: GCC vs. LLVM

FromLawrence D’Oliveiro <ldo@nz.invalid>
Date2026-10-31 21:06 +0000
SubjectRe: GCC vs. LLVM
Message-ID<11c5l8a$1f300$1@dont-email.me>
In reply to#94847
On Sat, 31 Oct 2026 10:30:39 -0400, jayjwa wrote:

> Clang whines alot on perfectly good code, but some of the graphics
> stuff requires it. I think Mesa and also AMD ROCm.

Why Clang and not GCC?

Because those companies are afraid of the GPL, aren’t they?

[toc] | [prev] | [next] | [standalone]


#94871 — Re: GCC vs. LLVM

FromNuno Silva <nunojsilva@invalid.invalid>
Date2026-11-01 00:39 +0000
SubjectRe: GCC vs. LLVM
Message-ID<11c61ov$1iflt$2@dont-email.me>
In reply to#94864
On 2026-10-31, Lawrence D’Oliveiro wrote:

> On Sat, 31 Oct 2026 10:30:39 -0400, jayjwa wrote:
>
>> Clang whines alot on perfectly good code, but some of the graphics
>> stuff requires it. I think Mesa and also AMD ROCm.
>
> Why Clang and not GCC?
>
> Because those companies are afraid of the GPL, aren’t they?

Didn't a recent post to this group suggest Apple invested in clang+llvm
because of absurd "fear" of GPLv3?

Well, even if that was a driving factor, I welcome there being one more
compiler collection. That kind of diversity is useful. Their long build
times, on the other hand...

-- 
Nuno Silva

[toc] | [prev] | [next] | [standalone]


#94874 — Re: GCC vs. LLVM

Fromrbowman <bowman@montana.com>
Date2026-11-01 01:45 +0000
SubjectRe: GCC vs. LLVM
Message-ID<nknjtkFftq4U4@mid.individual.net>
In reply to#94871
On Sun, 01 Nov 2026 00:39:59 +0000, Nuno Silva wrote:

> On 2026-10-31, Lawrence D’Oliveiro wrote:
> 
>> On Sat, 31 Oct 2026 10:30:39 -0400, jayjwa wrote:
>>
>>> Clang whines alot on perfectly good code, but some of the graphics
>>> stuff requires it. I think Mesa and also AMD ROCm.
>>
>> Why Clang and not GCC?
>>
>> Because those companies are afraid of the GPL, aren’t they?
> 
> Didn't a recent post to this group suggest Apple invested in clang+llvm
> because of absurd "fear" of GPLv3?

I wouldn't call it fear. Apple initially attempted to use ggc as the front 
end to llvm. There was little interest in the gcc maintainers to support 
Objective C so Apple would have had to modify gcc, taking a big bite out 
of the poisoned apple.

Which is more free, one of the many permissive licenses or GPLv3? 

[toc] | [prev] | [next] | [standalone]


#94877 — Re: GCC vs. LLVM

FromNuno Silva <nunojsilva@invalid.invalid>
Date2026-11-01 09:05 +0000
SubjectRe: GCC vs. LLVM
Message-ID<11c6vd0$1qnfh$1@dont-email.me>
In reply to#94874
On 2026-11-01, rbowman wrote:

> On Sun, 01 Nov 2026 00:39:59 +0000, Nuno Silva wrote:
>
>> On 2026-10-31, Lawrence D’Oliveiro wrote:
>> 
>>> On Sat, 31 Oct 2026 10:30:39 -0400, jayjwa wrote:
>>>
>>>> Clang whines alot on perfectly good code, but some of the graphics
>>>> stuff requires it. I think Mesa and also AMD ROCm.
>>>
>>> Why Clang and not GCC?
>>>
>>> Because those companies are afraid of the GPL, aren’t they?
>> 
>> Didn't a recent post to this group suggest Apple invested in clang+llvm
>> because of absurd "fear" of GPLv3?
>
> I wouldn't call it fear. Apple initially attempted to use ggc as the front 
> end to llvm. There was little interest in the gcc maintainers to support 
> Objective C so Apple would have had to modify gcc, taking a big bite out 
> of the poisoned apple.

Ha!

> Which is more free, one of the many permissive licenses or GPLv3? 

This would not be about GPL in general, but about the protections that
were hardened specifically in GPLv3, so your question would be between
GPLv2 and GPLv3.



-- 
Nuno Silva

[toc] | [prev] | [next] | [standalone]


#94876 — Re: GCC vs. LLVM

Fromc186282 <c186282@nnada.net>
Date2026-11-01 03:51 -0500
SubjectRe: GCC vs. LLVM
Message-ID<NrWcnStRk_8FYHv3nZ2dnZfqnPWdnZ2d@giganews.com>
In reply to#94864
On 10/31/26 17:06, Lawrence D’Oliveiro wrote:
> On Sat, 31 Oct 2026 10:30:39 -0400, jayjwa wrote:
> 
>> Clang whines alot on perfectly good code, but some of the graphics
>> stuff requires it. I think Mesa and also AMD ROCm.
> 
> Why Clang and not GCC?
> 
> Because those companies are afraid of the GPL, aren’t they?

   IHMO - *both* GCC and Clang/LLVM are Very Good.
   No reason for any prejudice at this time. I tend
   to install 'em all by reflex. Code::Blocks can
   cope with them all. Also install 'TCC' - which
   is suprisingly good and creates more compact
   code more quickly - but don't expect the more
   'esoteric' libraries.

   As for "whining" ... that seems to be a 'feature'
   of the modern compilers. They are SO tuned for
   "potential" issues that they pester you to death.
   Let 'em have their way and half yer code would
   be compiler flags and such turning off the 'whining'.
   Just write solid code and you'll be fine.

   It shouldn't BE this complicated ...... one reason
   I mostly switched to Python .... no whining.
   Python mostly IS 'C' ... all the libs are 'C' ...
   just interpreted steps between lib calls - a tad
   slower but much easier to deal with on many levels.

[toc] | [prev] | [next] | [standalone]


#94883 — Re: GCC vs. LLVM

FromKeith Thompson <Keith.S.Thompson+u@gmail.com>
Date2026-11-01 02:16 -0800
SubjectRe: GCC vs. LLVM
Message-ID<11c73ip$1s4us$1@kst.eternal-september.org>
In reply to#94876
c186282 <c186282@nnada.net> writes:
[...]
>                     Also install 'TCC' - which
> is suprisingly good and creates more compact
> code more quickly - but don't expect the more
> 'esoteric' libraries.

Why would using tcc not give you access to "esoteric" libraries?

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */

[toc] | [prev] | [next] | [standalone]


#94905 — Re: GCC vs. LLVM

Fromc186282 <c186282@nnada.net>
Date2026-11-01 18:01 -0500
SubjectRe: GCC vs. LLVM
Message-ID<2oWdnWWut6BKWXr3nZ2dnZfqn_adnZ2d@giganews.com>
In reply to#94883
On 11/1/26 05:16, Keith Thompson wrote:
> c186282 <c186282@nnada.net> writes:
> [...]
>>                      Also install 'TCC' - which
>> is suprisingly good and creates more compact
>> code more quickly - but don't expect the more
>> 'esoteric' libraries.
> 
> Why would using tcc not give you access to "esoteric" libraries?

   They don't come "in the package". You can
   always tweak and add-on later of course.
   Anyway, most tools center on GCC or Clang
   these days. Still use TCC sometimes if I'm
   writing a short utility however.

[toc] | [prev] | [next] | [standalone]


#94913 — Re: GCC vs. LLVM

FromKeith Thompson <Keith.S.Thompson+u@gmail.com>
Date2026-11-01 20:25 -0800
SubjectRe: GCC vs. LLVM
Message-ID<11c93bv$2ibdp$1@kst.eternal-september.org>
In reply to#94905
c186282 <c186282@nnada.net> writes:
> On 11/1/26 05:16, Keith Thompson wrote:
>> c186282 <c186282@nnada.net> writes:
>> [...]
>>>                      Also install 'TCC' - which
>>> is suprisingly good and creates more compact
>>> code more quickly - but don't expect the more
>>> 'esoteric' libraries.
>> Why would using tcc not give you access to "esoteric" libraries?
>
> They don't come "in the package". You can
> always tweak and add-on later of course.
> Anyway, most tools center on GCC or Clang
> these days. Still use TCC sometimes if I'm
> writing a short utility however.

(Why do you indent your original text in your posts?  I find it
distracting.)

They typically don't come "in the package" with gcc either.

For Windows, gcc is typically installed via a package that includes
the compiler along with a number of libraries.  In that context,
a tcc-based installer might not include the same libraries as a
gcc-based instaler.

For Linux-based and other Unix-like systems, it's more common
for libraries to be installed separately.  For example, on my
Ubuntu system the "gcc" command is provided by the "gcc" package,
but the GNU MP bignum library is provided by the libgmp10 and
libgmp-dev packages.  If I have a C program that depends on GNU
MP, I can build it with gcc, clang, or tcc.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */

[toc] | [prev] | [next] | [standalone]


#94919 — Re: GCC vs. LLVM

Fromc186282 <c186282@nnada.net>
Date2026-11-02 01:52 -0500
SubjectRe: GCC vs. LLVM
Message-ID<DbqcnUXBFt-yrnX3nZ2dnZfqn_qdnZ2d@giganews.com>
In reply to#94913
On 11/1/26 23:25, Keith Thompson wrote:
> c186282 <c186282@nnada.net> writes:
>> On 11/1/26 05:16, Keith Thompson wrote:
>>> c186282 <c186282@nnada.net> writes:
>>> [...]
>>>>                       Also install 'TCC' - which
>>>> is suprisingly good and creates more compact
>>>> code more quickly - but don't expect the more
>>>> 'esoteric' libraries.
>>> Why would using tcc not give you access to "esoteric" libraries?
>>
>> They don't come "in the package". You can
>> always tweak and add-on later of course.
>> Anyway, most tools center on GCC or Clang
>> these days. Still use TCC sometimes if I'm
>> writing a short utility however.
> 
> (Why do you indent your original text in your posts?  I find it
> distracting.)

   That's "MY STYLE". Live with it. Keeps it more
   plain what others say, what I say. Also like
   'random' capitalization and odd punctuation
   to kind-of emulate 'natural speaking'. You do
   it your way, I'll do it mine, and we'll all
   get there together.

> They typically don't come "in the package" with gcc either.
> 
> For Windows, gcc is typically installed via a package that includes
> the compiler along with a number of libraries.  In that context,
> a tcc-based installer might not include the same libraries as a
> gcc-based instaler.

   Correct. As per the 'tiny' bit, it's "cut down".
   Has MOST of what you'll need, good enough for a
   lot of stuff, but if you're doing "cutting edge"
   then go with the bigger compilers and their libs.

> For Linux-based and other Unix-like systems, it's more common
> for libraries to be installed separately.  For example, on my
> Ubuntu system the "gcc" command is provided by the "gcc" package,
> but the GNU MP bignum library is provided by the libgmp10 and
> libgmp-dev packages.  If I have a C program that depends on GNU
> MP, I can build it with gcc, clang, or tcc.

   Yea, it all gets bigger and deeper deeper deeper ...

   Does it HAVE to be thus ???

   Just one of the reasons I mostly use Python
   these days ... "just works" ... though you
   still have to install libs. A "Python EVERYTHING"
   meta-package would be nice.

   Ah, was complaining about a re-install of a
   dedicated unit/app the other day, kept crashing
   after x-minutes. TWO things - it pings somewhere
   every so often to make sure it's still a good
   connection and ends the pgm if there's no
   response after x tries. The ping address is
   in a config file. First, had the wrong address
   in the config file. Second, it's actually
   FPING and I didn't install it :-)

   Details details ........

   STILL not sure why @reboot didn't work OR a
   perfectly good systemd start-up. Last PiOS
   version I used those DID work.

[toc] | [prev] | [next] | [standalone]


#94920 — Re: GCC vs. LLVM

FromKeith Thompson <Keith.S.Thompson+u@gmail.com>
Date2026-11-01 23:06 -0800
SubjectRe: GCC vs. LLVM
Message-ID<11c9cqh$2k6jt$1@kst.eternal-september.org>
In reply to#94919
c186282 <c186282@nnada.net> writes:
> On 11/1/26 23:25, Keith Thompson wrote:
>> c186282 <c186282@nnada.net> writes:
>>> On 11/1/26 05:16, Keith Thompson wrote:
>>>> c186282 <c186282@nnada.net> writes:
>>>> [...]
>>>>>                       Also install 'TCC' - which
>>>>> is suprisingly good and creates more compact
>>>>> code more quickly - but don't expect the more
>>>>> 'esoteric' libraries.
>>>> Why would using tcc not give you access to "esoteric" libraries?
>>>
>>> They don't come "in the package". You can
>>> always tweak and add-on later of course.
>>> Anyway, most tools center on GCC or Clang
>>> these days. Still use TCC sometimes if I'm
>>> writing a short utility however.
>> (Why do you indent your original text in your posts?  I find it
>> distracting.)
>
> That's "MY STYLE". Live with it. Keeps it more
> plain what others say, what I say. Also like
> 'random' capitalization and odd punctuation
> to kind-of emulate 'natural speaking'. You do
> it your way, I'll do it mine, and we'll all
> get there together.

Of course I'll live with it.  I might do so by ignoring you.

You can indicate that you posted something by identifying it
in the headers.  If you think you're important enough to use a
different layout to tell us it's you, you're mistaken.

>> They typically don't come "in the package" with gcc either.
>> For Windows, gcc is typically installed via a package that includes
>> the compiler along with a number of libraries.  In that context,
>> a tcc-based installer might not include the same libraries as a
>> gcc-based instaler.
>
> Correct. As per the 'tiny' bit, it's "cut down".
> Has MOST of what you'll need, good enough for a
> lot of stuff, but if you're doing "cutting edge"
> then go with the bigger compilers and their libs.

You seem to be ignoring the fact that compilers (gcc, clang, tcc)
are compilers, and do not include most libraries.

Perhaps you have an example of a library that you can use with gcc
and clang but can't use with tcc.

>> For Linux-based and other Unix-like systems, it's more common
>> for libraries to be installed separately.  For example, on my
>> Ubuntu system the "gcc" command is provided by the "gcc" package,
>> but the GNU MP bignum library is provided by the libgmp10 and
>> libgmp-dev packages.  If I have a C program that depends on GNU
>> MP, I can build it with gcc, clang, or tcc.
>
> Yea, it all gets bigger and deeper deeper deeper ...
>
> Does it HAVE to be thus ???

I have no idea what you mean.  I've just told you that a library
can be used with any C compiler I like, and you seem to be saying
that's too complicated.

> Just one of the reasons I mostly use Python
> these days ... "just works" ... though you
> still have to install libs. A "Python EVERYTHING"
> meta-package would be nice.
>
> Ah, was complaining about a re-install of a
> dedicated unit/app the other day, kept crashing
> after x-minutes. TWO things - it pings somewhere
> every so often to make sure it's still a good
> connection and ends the pgm if there's no
> response after x tries. The ping address is
> in a config file. First, had the wrong address
> in the config file. Second, it's actually
> FPING and I didn't install it :-)
>
> Details details ........

But not enough details (like the name of the app) for anyone to
help you.

[...]

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */

[toc] | [prev] | [next] | [standalone]


#94924 — Re: GCC vs. LLVM

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2026-11-02 10:39 +0000
SubjectRe: GCC vs. LLVM
Message-ID<11c9p8l$2oln7$3@dont-email.me>
In reply to#94920
On 02/11/2026 07:06, Keith Thompson wrote:
> You can indicate that you posted something by identifying it in the
> headers.  If you think you're important enough to use a different
> layout to tell us it's you, you're mistaken.
> 

Thunderbird has a useful feature - rewrap.

It can remove a lot of stylistic egotisms

Sadly not CAPITALISATION...

-- 
"I am inclined to tell the truth and dislike people who lie consistently.
This makes me unfit for the company of people of a Left persuasion, and
all women"

[toc] | [prev] | [next] | [standalone]


#94891

FromChris Ahlstrom <OFeem1987@teleworm.us>
Date2026-11-01 10:07 -0500
Message-ID<11c7kmg$22g7e$1@dont-email.me>
In reply to#94820
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

[toc] | [prev] | [next] | [standalone]


#94896

FromNuno Silva <nunojsilva@invalid.invalid>
Date2026-11-01 18:31 +0000
Message-ID<11c80ic$26et9$4@dont-email.me>
In reply to#94891
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.misc


csiph-web