You copied the Doc URL to your clipboard.

Specifying command-line options with an environment variable

You can specify command-line options by setting the value of a tool-specific environment variable:

  • ARMCCn_ASMOPT for the assembler

  • ARMCCn_CCOPT for the compiler

  • ARMCCn_FROMELFOPT for the fromelf image converter

  • ARMCCn_LINKOPT for the linker.

The syntax is identical to the command-line syntax. The compilation tool reads the value of the environment variable and inserts it at the front of the command string. This means that you can override options specified in the environment variable by arguments on the command-line.