This option generates code that is compatible with multiple target architectures or processors.
is the name of a target processor or architecture, or
NONE. Processor and architecture names are not case-sensitive.
If multiple instances of this option are present on the command line, the last one specified overrides the previous instances.
--compatible=NONEat the end of the command line to turn off all other instances of the option.
Using this option avoids the need to recompile the same source code for different targets. You could apply this use to a possible target upgrade where a different architecture or processor is to be used in the future, without having to separately recompile for that target.
See Table 2. The valid combinations are:
No other combinations are permitted.
The effect is to compile code that is compatible with both
This means that only Thumb1 instructions are used. (This is the
intersection of the capabilities of group 1 and group 2.)
Although the generated code is compatible with multiple targets, this code might be less efficient than compiling for a single target processor or architecture.