How do I compile for a specific CPU?

Question

How do I compile for a specific CPU?

Answer

Add the -mcpu=cpu option to your command-line. For example, to compile for the ARM 926EJ-S CPU, use the -mcpu=arm926ej-s option.


This entry was last updated on 8 March 2013.