--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 part numbers such as ARM7TDMI®. The default is ARM7TDMI.

When you specify an alternative processor name using --compatible, valid values of name for both the --cpu and --compatible options are restricted to those shown in Table 1.

Show/hideExample

armasm --cpu=Cortex-M3 inputfile.s

Show/hideSee also

Copyright © 2011 ARM. All rights reserved.ARM DUI 0588A
Non-ConfidentialID061811