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

Jan Hoogerbrugge jan.hoogerbrugge at biface-tools.com
Fri Oct 11 11:23:27 PDT 2013


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





More information about the llvm-dev mailing list