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

Reply via email to