It will be useful to compare clang and GCC's code generators for arm 64bit code.
FWIW you can already add a -target arg to the x86 clang to get arm64 output: https://godbolt.org/g/WJQWhe
@nico: the -target hack doesn't work with C++ standard library includes though: https://godbolt.org/z/G7cb4P
would be good to have at least these options for "arm clang":
Thumb support (#1271) can be done, I suppose, by adding -mthumb and fiddling with march/mcpu.
This could be a wrapper for @nico's solution, but it would also have to know where the headers and libraries are, as per @Ferdi265's comment, which users don't.
See also #915
This is fixed by #2262
Most helpful comment
FWIW you can already add a
-targetarg to the x86 clang to get arm64 output: https://godbolt.org/g/WJQWhe