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.


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.


armasm --cpu=Cortex-M3 inputfile.s

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0489H