HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)

Command-Line Differences
In HP aC++, you invoke the compiler with the aCC command instead of the CC command
used to invoke HP C++.
The following sections describe differences in command-line options:
“New Command-Line Options” (page 249)
“Obsolete Command-Line Options” (page 249)
“Changed Command-Line Options” (page 251)
New Command-Line Options
Table 12 describes the new options for HP aC++. These options are not available for
HP C++ (cfront). However, if a related option exists, it is noted here.
See Chapter 2: “Command-Line Options” (page 34) to for a complete list of HP aC++
command-line options.
Table 12 New Command-Line Options
DescriptionOption
Replaces the -g debugger option. It generates complete debug information for the
debugger.
-g0
Invokes the HP aC++ Online Programmer’s Guide.+help
Disables exception handling. In HP aC++, exception handling is enabled by default.+noeh
In HP C++ (cfront), exception handling is disabled by default. To enable it, use the +eh
option, which is obsolete in HP aC++.
Reduces compilation time and executable file size by precompiling common include
(header) files.
Precompiled
Header File
Options
There are new options and new functionality for template processing.Template
Options
For more information about HP aC++ templates, see Chapter 5: “Using HP aC++
Templates” (page 163).
Obsolete Command-Line Options
Table 13 describes obsolete command-line options for HP aC++.
Table 13 Obsolete Command-Line Options
DescriptionOption
Debugging Option
In HP C++ (cfront), the -y option generates a Static Analysis database if SoftBench is
installed and /opt/softbench/bin is at the beginning of your path. The option is not
required in HP aC++.
-y
Command-Line Differences 249