[cfe-dev] Something wrong with Clang for ARM-Cortex-A8.

Liu proljc at gmail.com
Thu May 6 02:01:53 PDT 2010


Hi Renato
      Thank you very much. I'll try llvm in another part of our system. If I
get time, I'll patch clang/llvm. Thank you, whatever.
Liu

2010/5/6 Renato Golin <rengolin at systemcall.org>

> On 6 May 2010 03:50, 爱好者 <proljc at gmail.com> wrote:
> > How can I use Clang to compile for the target ARM-Cortex-A8 on my host.
> > thank you all
>
> Hi there,
>
> Try to generate IR (-emit-llvm) and then compile with llc:
>
> $ clang -ccc-host-triple armv7-unknown-linux-gnueabi -emit-llvm
> /root/tes.c (-I gcc arm includes -L gcc arm libs) -o tes.bc
> $ llc tes.bc -o tes.s (some more options)
>
> And continue with codesourcery gcc from then on.
>
> Or maybe you can find your way around all the options that will make
> clang drive the compilation process through the correct path... ;)
> Maybe someone else knows a better way of doing this...
>
> cheers,
> --renato
>
> http://systemcall.org/
>
> Reclaim your digital rights, eliminate DRM, learn more at
> http://www.defectivebydesign.org/what_is_drm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100506/c277145c/attachment.html>


More information about the cfe-dev mailing list