You copied the Doc URL to your clipboard.

Getting started with Arm® C/C++ Compiler

This tutorial shows how to compile and generate executables that will run on any 64-bit Armv8-A architecture.

Installation

Refer to Help and tutorials for details on how to perform the installation on Linux.

Environment Configuration

Note

Full instructions on configuring your environment for Arm C/C++ Compiler are included in the installation guide.

Your administrator should have already installed Arm C/C++ Compiler and made the environment module available.

To see which environment modules are available:

module avail

Note

You may need to configure the MODULEPATH environment variable to include the installation directory:

export MODULEPATH=$MODULEPATH:/opt/arm/modulefiles/

To configure your Linux environment to make Arm C/C++ Compiler available:

module load <architecture>/<linux_variant>/<linux_version>/suites/arm-compiler-for-hpc/<version>

For example:

module load Generic-AArch64/SUSE/12/suites/arm-compiler-for-hpc/19.3

You can check your environment by examining the PATH variable. It should contain the appropriate bin directory from /opt/arm, as installed in the previous section:

echo $PATH /opt/arm/arm-compiler-for-hpc-19.3_Generic-AArch64_SUSE-12_aarch64-linux/bin:...

You can also use the which command to check that the Arm C/C++ Compiler armclang command is available:

which armclang /opt/arm/arm-compiler-for-hpc-19.3_Generic-AArch64_SUSE-12_aarch64-linux/bin/armclang

Note

You might want to consider adding the module load command to your .profile to run it automatically every time you log in.

Get help

For a list of all the supported options, use:

armclang --help

To see detailed descriptions of all supported options, use:

man armclang

For a list of command-line options, see Compiler options.

If you have problems and would like to contact our support team, get in touch:

Contact Arm Support

Was this page helpful? Yes No