You copied the Doc URL to your clipboard.

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 that the toolchain uses 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 to display the System Properties dialog box, then click Environment Variables....
  3. Create a new user variable for the required environment variable.

To set an environment variable on a Linux machine, open a bash shell and use the export command. 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 an Arm Development Studio or Arm DS-5 Development Studio toolkit license and you are running the Arm Compiler tools outside of the that environment.

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

ARM_TOOL_VARIANT

Required only if you have an Arm Development Studio or DS-5 Development Studio toolkit license and you are running the Arm Compiler tools outside of that environment.

If you have an ultimate license, set this environment variable to ult to enable the Ultimate features. See Product and toolkit configuration for more information.

ARM_PRODUCT_DEF

Required only if you have an Arm Development Studio toolkit license and you are running the Arm Compiler tools outside of the Arm Development Studio environment.

Use this environment variable to specify the location of the product definition file.

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