[cfe-dev] Targeting ARM with Clang
Evan Cheng
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
cd tools
svn co .. clang
cd ../..
./configure
make
./Debug+Asserts/bin/clang -arch armv7 -S -O3 -o - hello.c
ARM code comes out.
Evan
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:
>> All,
>>
>> 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.
>
> -Eli
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list