Hi Renato<div>      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.</div><div>Liu<br><br><div class="gmail_quote">2010/5/6 Renato Golin <span dir="ltr"><<a href="mailto:rengolin@systemcall.org">rengolin@systemcall.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 6 May 2010 03:50, °®ºÃÕß <<a href="mailto:proljc@gmail.com">proljc@gmail.com</a>> wrote:<br>
> How can I use Clang to compile for the target ARM-Cortex-A8 on my host.<br>
> thank you all<br>
<br>
</div>Hi there,<br>
<br>
Try to generate IR (-emit-llvm) and then compile with llc:<br>
<br>
$ clang -ccc-host-triple armv7-unknown-linux-gnueabi -emit-llvm<br>
/root/tes.c (-I gcc arm includes -L gcc arm libs) -o tes.bc<br>
$ llc tes.bc -o tes.s (some more options)<br>
<br>
And continue with codesourcery gcc from then on.<br>
<br>
Or maybe you can find your way around all the options that will make<br>
clang drive the compilation process through the correct path... ;)<br>
Maybe someone else knows a better way of doing this...<br>
<br>
cheers,<br>
--renato<br>
<br>
<a href="http://systemcall.org/" target="_blank">http://systemcall.org/</a><br>
<br>
Reclaim your digital rights, eliminate DRM, learn more at<br>
<a href="http://www.defectivebydesign.org/what_is_drm" target="_blank">http://www.defectivebydesign.org/what_is_drm</a><br>
</blockquote></div><br></div>