Table 12 New Command-Line Options (continued)

Option

Description

Precompiled

Reduces compilation time and executable file size by precompiling common include (header)

Header File

files.

Options

 

Template Options

There are new options and new functionality for template processing.

 

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

Option

Description

Debugging Option

 

-y

In HP C++ (cfront), the -yoption 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++.

Exception Handling Option

+eh

Enables exception handling in HP C++.

 

In HP aC++, exception handling is enabled by default. To disable exception handling off, compile

 

with the +noeh option.

Library Option

 

-depth

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

 

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++, -depthfunctionality is the default option.

Preprocessor Options

-Ac

Requests the compatibility mode HP C++ preprocessor, cpp. This option is not available in HP

 

aC++.

-C

Prevents the preprocessor from stripping comments from your source file. In HP aC++ comments

 

are retained.

-Wp

The -Woption no longer accepts p as a subprocess parameter. In HP aC++, there is no separate

 

subprocess for the preprocessor.

 

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

 

-pta

Instantiates all members of used template classes and all needed template functions.

-ptb

Invokes ld instead of nm to do simulated linking.

-pth

Uses short file names for template instantiation files.

-ptH"list"

Specifies file name extensions for template declaration files (header files).

-ptn

Instantiates at link time rather than at compile time.

-ptrpath

Specifies an alternate location for the template repository.

200 Migrating from HP C++ (cfront) to HP aC++

Page 200
Image 200
HP C/aC++ for PA-RISC Software manual Obsolete Command-Line Options, Describes obsolete command-line options for HP aC++