0
\$\begingroup\$

Is armcc dependent on the type of ARM processor on the hardware board ? Example: while I compile my code (using a make file) where option CPU=CORTEX-A9 is given , it errors out stating argument CortexA9 not permitted for option cpu. The armcc version I am using is 3.1

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Have you tried armcc --cpu=list on the command line to find out what options are supported for that version of the compiler? \$\endgroup\$ Commented Jun 21, 2012 at 13:31
  • \$\begingroup\$ I tried it and it showed a list of ARM processors supported. This helps, thanks ! \$\endgroup\$ Commented Jul 4, 2012 at 10:51

1 Answer 1

2
\$\begingroup\$

Is armcc dependent on the type of ARM processor on the hardware board ?

Yes.

To put it bluntly, an ARM7TDMI and a Cortex-A9 are totally different processors, that happen to share some instructions. Yet both are routinely called 'ARM' chips. Within the Cortexes the differences are smaller, but still significant. You might get by with using a lower number like cortex-a8, but YMMV.

I am not familiar with armcc (google seems to know more than one compiler with this name). Check the release notes of your version to see whether A9 is supported. Maybe you can upgrade to a newer version.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.