HP aC++/HP C A.06.28 Programmer's Guide Integrity servers (769150-001, March 2014)
Table 12 New Command-Line Options (continued)
DescriptionOption
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 132).
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
Exception Handling Option
Enables exception handling in HP C++.+eh
In HP aC++, exception handling is enabled by default. To disable exception handling off, compile
with the +noeh option.
Library Option
In HP C++, this option instructs runtime system to traverse the shared library list in a depth-first
manner when calling static constructors and when loading the libraries. The default is to traverse
-depth
the shared libraries in a left-to-right order when calling static constructors. The order of execution
of static constructors within each shared library is not affected by this option.
In HP aC++, -depth functionality is the default option.
Preprocessor Options
Requests the compatibility mode HP C++ preprocessor, cpp. This option is not available in HP
aC++.
-Ac
Prevents the preprocessor from stripping comments from your source file. In HP aC++ comments
are retained.
-C
The -W option no longer accepts p as a subprocess parameter. In HP aC++, there is no separate
subprocess for the preprocessor.
-Wp
Use the CC command (HP C++) as a workaround:
Example:
CC prog.C -I /opt/aCC/include -I /opt/aCC/include/iostream -I /usr -I /usr/include
See “Migration Considerations Related to Preprocessing” (page 208) for more information.
Template Options
Instantiates all members of used template classes and all needed template functions.-pta
Invokes ld instead of nm to do simulated linking.-ptb
Uses short file names for template instantiation files.-pth
Specifies file name extensions for template declaration files (header files).-ptH"list"
Instantiates at link time rather than at compile time.-ptn
Specifies an alternate location for the template repository.-ptrpath
200 Migrating from HP C++ (cfront) to HP aC++