Compiler-explorer: Add clang arm64 bit compiler support libraries

Created on 7 Nov 2016  路  5Comments  路  Source: compiler-explorer/compiler-explorer

It will be useful to compare clang and GCC's code generators for arm 64bit code.

new-compilers

Most helpful comment

FWIW you can already add a -target arg to the x86 clang to get arm64 output: https://godbolt.org/g/WJQWhe

All 5 comments

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":

  • armv7a-linux-gnueabi (32-bits)
  • armv8a-linux-gnueabi (32-bits)
  • aarch64-linux-gnu (64 bits)

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

https://godbolt.org/z/Yrff7G

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sahnvour picture Sahnvour  路  4Comments

cassioneri picture cassioneri  路  5Comments

mattgodbolt picture mattgodbolt  路  4Comments

valiko-ua picture valiko-ua  路  4Comments

rafaelreyesalvarez picture rafaelreyesalvarez  路  3Comments