[cfe-dev] Targeting ARM with Clang
evan.cheng at apple.com
Fri Jul 16 13:35:04 PDT 2010
It shouldn't require anything special.
This is what I do (on Mac OS X):
svn co ... llvm
svn co .. clang
./Debug+Asserts/bin/clang -arch armv7 -S -O3 -o - hello.c
ARM code comes out.
On Jul 16, 2010, at 1:26 PM, Eli Friedman wrote:
> On Fri, Jul 16, 2010 at 1:06 PM, David McNamara
> <david.mcnamara at crescentbaysoftware.com> wrote:
>> 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?
> Cross-compilation with clang isn't really properly supported... "clang
> -ccc-host-triple armv7-apple-darwin10 foo.c -c" (using an appropriate
> triple for your platform) might do something close to what you want,
> but expect to run into issues.
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
More information about the cfe-dev