[LLVMdev] arm machine code with clang 3.2

Tim Northover t.p.northover at gmail.com
Sat Apr 13 01:10:02 PDT 2013


Hi GangRyung,

> To cross-compile for Raspberry Pi add flags -ccc-host-triple arm-eabi -marm
> -mfpu=vfp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=softfp

The modern equivalent just changes "-ccc-host-triple" to "-target"; it
looks like a plausible line for the Pi, but some details depend on the
environment you'll be executing in and what you're trying to compile.

For example you may need extra options to tell clang where the ARM/Pi
headers are located, and there are hard-float versions of at least
Linux around that would change the appropriate -mfloat-abi option.

Tim.



More information about the llvm-dev mailing list