HP aC++ A.03.85 Release Notes

HP aC++ Release Notes
What’s in This Version
Chapter 1 11
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.
Example Rules:
The following example rules map gcc compiler options to corresponding HP aC++ compiler
options. The same rules can be used for mapping options from any third party compiler. The
syntax for the rule becomes as follows:
gcc_option => hp_option
-Wtraditional =>
Ignores (removes) -Wtraditional, a gcc option from the command line.
-shared => -b
Replaces -shared with -b at the command line.
-rpath-link $1 =>
Deletes -rpath-link and the arguments from the command line.
--gccopt $1=$2 => -hpopt $2
Replaces--gccopt option=name" at the command line with "-hpopt name".
-gccopt $1 => +xyz
Replaces "-gccopt optionarg" at the command-line with "+xyz".
-Bstatic => -a archive -noshared
Replaces "-Bstatic" with "-a archive -noshared".
Configuration File to set Site-wide Default Options
You can specify default sitewide options for HP aC++ in a configuration file. On startup, HP
aC++ reads, and applies the default options from the file if the file is found and readable. No
default options are set if the file is not found or readable.
The default path of the configuration file is set to the following locations:
/var/ansic/share/cc.conf in C mode
/var/aCC/share/aCC.conf in C++ mode
To change the path of the configuration file, use the following environment variables:
CC_CONFIG in C mode
CXX_CONFIG in C++ mode
The options in the configuration file can be specified in the same format as that for CCOPTS
and CXXOPTS.
[options-list-1][<vbar> [options-list-2]]