This option specifies a second processor or architecture, name, for which the assembler generates compatible code.

When you specify a processor or architecture name using --compatible, valid values of name for both the --cpu and --compatible options are restricted to those shown in Table 1 and must not be from the same group.

Table 1. Compatible processor or architecture combinations

Group 1ARM7TDMI, 4T
Group 2Cortex-M0, Cortex-M1, Cortex-M3, Cortex-M4, 7-M, 6-M, 6S-M, SC000

Specify --compatible=NONE to turn off all previous instances of the option on the command line.


armasm --cpu=arm7tdmi --compatible=cortex-m3 inputfile.s

Show/hideSee also

Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0489C