<span style>Hi,  </span><span style>Gergö</span><span style> </span><div style><br></div><div style><div>Cross compiling with Clang/llvm is much easier than with llvm-gcc or gcc!</div><br></div><div style>Thank you very much!!</div>
<div style>Though I am so much new to llvm that I can't prove your answer right way, my friend verified your answer.</div><div style><br></div><div style>Thank you very much.</div><div style><br></div><div style>Sincerely</div>
<div style>Journeyer</div><div style><br></div><div style>(PS. Sorry I am resending same email because I sent only to you. I want to say thank you on the mail list.)</div><br class="Apple-interchange-newline"><div class="gmail_quote">
<br></div><div class="gmail_quote">2012/6/18 Gergö Barany <span dir="ltr"><<a href="mailto:gergo@complang.tuwien.ac.at" target="_blank">gergo@complang.tuwien.ac.at</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 Sat, Jun 16, 2012 at 20:20:23 +0900, Journeyer J. Joh wrote:<br>
> I wonder if llvm/Clang can compile C or C++ for ARM from on x86.<br>
<br>
</div>Yes. I use<br>
  clang -emit-llvm -ccc-host-triple arm-unknown-linux-gnu -I /..arm../include/<br>
to generate LLVM bitcode files for ARM. llc then automagically knows to<br>
generate ARM assembly, and ARM binutils take it from there.<br>
<div class="im"><br>
> If the cross compiling is supported, is there any documentation on how to<br>
> do it?<br>
<br>
</div>Dunno. Last time I looked, the documentation of clang's command line flags<br>
disagreed with reality, and the -ccc-host-triple flag wasn't documented<br>
anywhere. This might have changed in the meantime.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Gergö Barany, research assistant                 <a href="mailto:gergo@complang.tuwien.ac.at">gergo@complang.tuwien.ac.at</a><br>
Institute of Computer Languages      <a href="http://www.complang.tuwien.ac.at/gergo/" target="_blank">http://www.complang.tuwien.ac.at/gergo/</a><br>
Vienna University of Technology                       Tel: +43-1-58801-58522<br>
Argentinierstrasse 8/E185, 1040 Wien, Austria         Fax: +43-1-58801-18598<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>----------------------------------------</div><div>Journeyer J. Joh</div><div>o o s a p r o g r a m m e r</div><div>a t</div><div>g m a i l  d o t  c o m</div>
<div>----------------------------------------</div><br>