Generates code that is compatible with multiple target architectures or processors.
is the name of a target processor or architecture, or
Processor and architecture names are not case-sensitive.
Nonegenerates code only for the processor or architecture specified by
If multiple instances of this option are present on the command line, the last one specified overrides the previous instances. Specify
--compatible=Noneat the end of the command line to turn off all other instances of the option.
The default is
Using this option avoids having to reassemble the same source code for different targets.
See the following table. The valid combinations are:
Table 10-1 Compatible processor or architecture combinations
No other combinations are permitted.
The effect is to generate code that is compatible with both
means that only 16-bit Thumb instructions are used. (This is the intersection of the
capabilities of group 1 and group 2.)
NoteAlthough the generated code is compatible with multiple targets, this code might be less efficient than compiling for a single target processor or architecture.
To generate code that is compatible with both the ARM7TDMI processor and the Cortex-M4 processor, specify:
armasm --cpu=arm7tdmi --compatible=cortex-m4 inputfile.s