You copied the Doc URL to your clipboard.

--cpu=name

This option sets the target CPU. Some instructions produce either errors or warnings if assembled for the wrong target CPU.

Valid values for name are architecture names such as 4T, 5TE, or 6T2, or part numbers such as ARM7TDMI®. The default is ARM7TDMI.

Note

ARMv7 is not a recognized ARM architecture. Using --cpu=7 generates only Thumb instructions that are common in the ARMv7-A, ARMv7-R, and ARMv7-M architectures.

When you specify an alternative 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.

Example

armasm --cpu=Cortex-M3 inputfile.s
Was this page helpful? Yes No