From: Brian Inglis <Brian.Inglis@Shaw.ca>
To: cygwin-patches@cygwin.com
Subject: Re: [PATCH] Cygwin: Make gcc-specific code in <sys/cpuset.h> compiler-agnostic
Date: Sat, 8 Jul 2023 22:27:58 -0600 [thread overview]
Message-ID: <e2c6b3f7-3493-90a2-e8c4-a8370a4336d2@Shaw.ca> (raw)
In-Reply-To: <ff935edc-154a-eb3b-600e-cea46dfc3d4f@maxrnd.com>
On 2023-07-08 15:53, Mark Geisert wrote:
> Mark Geisert wrote:
> I got tripped up by misspelling and not being able to link clang{,++} programs
> on my test system. I checked the .o files with objdump: Clang and clang++ both
> support __builtin_popcountl, but they emit code for the Hackers Delight
> algorithm rather than using the single-instruction popcnt. Sorry for the
> confustion [sic].
That's what I meant - clang 8 "identifies as" gcc 4, and builtin and intrinsic
function support are almost the same (and fairly close to gcc 11) builtin and
intrinsic function support.
And as you mentioned, any support for builtins is better than what we can whip
up off the top of our heads (unless you use HD/2!)
For our purposes, the main differences between clang 8 and current are latest
language, library, and processor support, but it also supports useful tools like
the analyzer and formatter, which gcc does not provide.
And it is convenient to be able to run another compiler side by side for
comparisons without copying files and remoting to another system.
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry
next prev parent reply other threads:[~2023-07-09 4:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-07 7:41 Mark Geisert
2023-07-07 9:44 ` Corinna Vinschen
2023-07-07 10:13 ` Mark Geisert
2023-07-07 10:45 ` Corinna Vinschen
2023-07-07 15:46 ` Jon Turney
2023-07-07 15:49 ` Corinna Vinschen
2023-07-07 18:54 ` Brian Inglis
2023-07-08 19:22 ` Brian Inglis
2023-07-08 20:59 ` Mark Geisert
2023-07-08 21:53 ` Mark Geisert
2023-07-09 4:27 ` Brian Inglis [this message]
2023-07-09 7:58 ` Mark Geisert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e2c6b3f7-3493-90a2-e8c4-a8370a4336d2@Shaw.ca \
--to=brian.inglis@shaw.ca \
--cc=cygwin-patches@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).