[LLVMdev] Generate code for ARM Cortex m0, m3, and m4.

Jim Grosbach grosbach at apple.com
Fri Oct 11 14:17:18 PDT 2013


Add -mthumb. It’s also probably a bug in the driver that that’s required. It should be implied by the v7m triple and/or cpu. Mind filing a PR to that effect?

-Jim

On Oct 11, 2013, at 11:23 AM, Jan Hoogerbrugge <jan.hoogerbrugge at biface-tools.com> wrote:

> Hi,
> 
> I am trying to cross compile code for ARM Cortex m0, m3, and m4.
> 
> For m0, I use:
> 
>  -target armv6--eabi -mcpu=cortex-m0
> 
> That seems to work. For m3 and m4, I use the following which does not work
> (fatal error: error in backend: CPU: 'cortex-m3' does not support ARM mode):
> 
> -target armv7m--eabi -mcpu=cortex-m3
> 
> and
> 
> -target armv7em--eabi -mcpu=cortex-m4
> 
> Who can help me with the right command line arguments for m3 and m4?
> 
> Thanks,
> Jan
> 
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list