Keil Logo Arm Logo

Assembler Reference

--cpu=name

--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 or architecture 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
Copyright © 2011-2012 ARM. All rights reserved.ARM DUI 0588B
Non-ConfidentialID062912

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.