You copied the Doc URL to your clipboard.

A.5 Toolchain environment variables

Except for ARMLMD_LICENSE_FILE, ARM® Compiler does not require any other environment variables to be set. However, there are situations where you might want to set environment variables.

The environment variables used by the toolchain are described in the following table.

Where an environment variable is identified as GCC compatible, the GCC documentation provides full information about that environment variable. See Environment Variables Affecting GCC on the GCC web site.

To set an environment variable on a Windows machine:

  1. Open the System settings from the Control Panel.
  2. Click Advanced system settings > Environment Variables.....
  3. Create a new user variable for the required environment variable.

To set an environment variable on a Linux machine, using a bash shell, use the export command on the command-line. For example:

export ARM_TOOL_VARIANT=ult

Table A-1 Environment variables used by the toolchain

Environment variable Setting
ARM_PRODUCT_PATH

Required only if you have a DS-5 toolkit license and you are running the ARM Compiler tools outside of the DS-5 environment.

Use this environment variable to specify the location of the sw/mappings directory within an ARM Compiler or DS-5 installation.

ARM_TOOL_VARIANT

Required only if you have a DS-5 toolkit license and you are running the ARM Compiler tools outside of the DS-5 environment.

If you have an ultimate license, set this environment variable to ult to enable the Ultimate features. See FAQ 16372 for more information.

ARMCOMPILER6_ASMOPT

An optional environment variable to define additional assembler options that are to be used outside your regular makefile.

The options listed appear before any options specified for the armasm command in the makefile. Therefore, any options specified in the makefile might override the options listed in this environment variable.

ARMCOMPILER6_CLANGOPT

An optional environment variable to define additional armclang options that are to be used outside your regular makefile.

The options listed appear before any options specified for the armclang command in the makefile. Therefore, any options specified in the makefile might override the options listed in this environment variable.

ARMCOMPILER6_FROMELFOPT

An optional environment variable to define additional fromelf image converter options that are to be used outside your regular makefile.

The options listed appear before any options specified for the fromelf command in the makefile. Therefore, any options specified in the makefile might override the options listed in this environment variable.

ARMCOMPILER6_LINKOPT

An optional environment variable to define additional linker options that are to be used outside your regular makefile.

The options listed appear before any options specified for the armlink command in the makefile. Therefore, any options specified in the makefile might override the options listed in this environment variable.

ARMROOT

Your installation directory root, install_directory.

ARMLMD_LICENSE_FILE

This environment variable must be set, and specifies the location of your ARM license file. See the ARM® DS-5 License Management Guide for information on this environment variable.

Note

On Windows, the length of ARMLMD_LICENSE_FILE must not exceed 260 characters.

C_INCLUDE_PATH

GCC compatible environment variable. Adds the specified directories to the list of places that are searched to find included C files.

COMPILER_PATH

GCC compatible environment variable. Adds the specified directories to the list of places that are searched to find subprograms.

CPATH

GCC compatible environment variable. Adds the specified directories to the list of places that are searched to find included files regardless of the source language.

CPLUS_INCLUDE_PATH

GCC compatible environment variable. Adds the specified directories to the list of places that are searched to find included C++ files.

TMP

Used on Windows platforms to specify the directory to be used for temporary files.

TMPDIR

Used on Red Hat Linux platforms to specify the directory to be used for temporary files.

Was this page helpful? Yes No