[LLVMdev] JIT on armhf

David Given dg at cowlark.com
Sat Feb 9 14:51:30 PST 2013


On 09/02/13 19:50, Renato Golin wrote:
[...]
> What does: 'clang -v -mcpu=cortex-a8 -S -O3 test.c' prints as a target?

Target: arm-unknown-linux-gnueabihf

...and the triple passed in to clang is armv7-unknown-linux-gnueabihf,
and it generated hardfloat code! That works!

[...]
> Should, but it isn't. Unfortunately, auto-detection in the ARM world is
> not as simple as in the Intel world, and it's just not implemented.

This sounds like something the Debian people should be doing: they know
what ABI clang is being built for, therefore they should be doing
whatever configuration is needed to make sure that the default
configuration allows the compiler produces binaries that actually work.
I'll file a bug. Thank-you very much.

Incidentally, clang -help doesn't list the -mcpu= option. And is there
any way to make the compiler list the supported set of architectures? It
would never have occurred to me to try cortex-a8...

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "Of course, on a sufficiently small planet, 40 km/hr is, in fact,
│ sufficient to punt the elastic spherical cow into low orbit." ---
│ Brooks Moses on r.a.sf.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130209/a1320576/attachment.sig>


More information about the llvm-dev mailing list