<div dir="ltr">Hi Jan,<div><br></div><div>For Cortex-M0, you should probably use the armv6m string in the target triple. For M3 and M4 you need to use the thumbv7m arch string, -mthumb won't be necessary.</div><div><br>
</div><div>Amara</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 October 2013 19:23, Jan Hoogerbrugge <span dir="ltr"><<a href="mailto:jan.hoogerbrugge@biface-tools.com" target="_blank">jan.hoogerbrugge@biface-tools.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am trying to cross compile code for ARM Cortex m0, m3, and m4.<br>
<br>
For m0, I use:<br>
<br>
-target armv6--eabi -mcpu=cortex-m0<br>
<br>
That seems to work. For m3 and m4, I use the following which does not work<br>
(fatal error: error in backend: CPU: 'cortex-m3' does not support ARM mode):<br>
<br>
-target armv7m--eabi -mcpu=cortex-m3<br>
<br>
and<br>
<br>
-target armv7em--eabi -mcpu=cortex-m4<br>
<br>
Who can help me with the right command line arguments for m3 and m4?<br>
<br>
Thanks,<br>
Jan<br>
<br>
<br>
______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>