[LLVMdev] Targeting ARM Cortex-a9 from x86_64 with clang

Renato Golin renato.golin at linaro.org
Wed Nov 27 07:10:46 PST 2013


On 27 November 2013 14:55, Richard Pennington <rich at pennware.com> wrote:
> Your link says that clang is using gcc to compile rather than compiling
> directly. You might want to look at the ELLCC project, which is designed for
> just the sort of cross compilation you are trying to do. http://ellcc.org

Hi Rich,

No, his output only has gcc to assemble and link:

"/usr/bin/arm-none-eabi-gcc" -v -mcpu=cortex-a9 -mfloat-abi=soft -c -o
/tmp/helloworld-2n4ZGp.o -x assembler /tmp/helloworld-Iarp5R.s
"/usr/bin/arm-none-eabi-gcc" -v -mcpu=cortex-a9 -mfloat-abi=soft -o
a.out /tmp/helloworld-2n4ZGp.o

Clang normally calls GAS in case "-integrated-as" is not specified for ARM.

Btw, Rod, you might try the integrated assembler, too.

cheers,
--renato



More information about the llvm-dev mailing list