export CCROOTDIR=/mnt/CXX2.1

In this example, HP aC++ searches the directories under /mnt/CXX2.1 (/mnt/CXX2.1/bin and /mnt/CXX2.1/lbin) for subprocesses rather than their respective default directories.

CXX_MAP_FILE Environment Variable

To facilitate easy migration of build environment from a different compiler to HP aC++, an option mapping support is provided. You can use the option mapping files to map the options in the third party compilers to HP aC++ equivalents. The mapping file is a text file that defines the mapping rules. The compiler reads the mapping file and applies the specified replacements to the options on the command line. This minimizes the need to make Makefile or script changes. The CXX_MAP_FILE environment variable allows you to change the location of the mapping file.

Syntax:

export CXX_MAP_FILE=file path

Example:

export CXX_MAP_FILE=/home/src/my_option.map

The example specifies that HP aC++ should use mapping file from file path specified using CXX_MAP_FILE.

Defining the Mapping Rules:

Following is the syntax for defining the rules in the mapping file:

LHS => RHS

where:

Left Hand Side (LHS) is the third party compiler option.

Right Hand Side (RHS) is the HP aC++ compiler option

NOTE: Ensure to use a space before and after "=>".

To define rules for options that have arguments, use the $<number> wildcard.

For Example:

$1 for the first argument, and $2 for the second. If the third party compiler option (LHS) does not match with any HP aC++option, leave the RHS blank.

TMPDIR Environment Variable

The TMPDIR environment variable allows you to change the location of temporary files created by the compiler. The default directory is /var/tmp.

Syntax:

export

TMPDIR=directory

ksh/sh notation

setenv

TMPDIR directory

csh notation

directory is the name of an HP-UX directory where you want HP aC++ to put temporary files during compilation.

Example:

export

TMPDIR=/mnt/temp

ksh

notation

setenv

TMPDIR /mnt/temp

csh

notation

The above example specifies that HP aC++ should put all temporary files in /mnt/temp.

Floating Installation

More than one version of the HP aC++ compiler can be installed on one system at the same time. The floating installation feature allows you to install the compiler in any location. You can install as many compiler versions as required, depending on your system’s resources.

Floating Installation

29