[cfe-dev] Targeting ARM with Clang

Anton Korobeynikov anton at korobeynikov.info
Fri Jul 16 13:21:51 PDT 2010


>  I am just learning about clang/ llvm now and I have a very simple
> question (and I must be missing something easy) but can someone answer
> how I can use clang to create an ARM executable?
For which platform?

> It tried generating assembler for arm by using clang with -emit-llvm and
> then:
>  llc -march=arm main.bc  (no complaint)
>
> But the resulting main.s will not compile with an arm-compiler that I
> currently have.
Which compiler? Are you using binutils?

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the cfe-dev mailing list