Table 12 New
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” |
|
Obsolete
Table 13 describes obsolete
Table 13 Obsolete
Option |
| Description |
|
|
|
Debugging Option |
| |
|
|
|
| In HP C++ (cfront), the | |
|
| /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 |
| |
|
|
|
| In HP C++, this option instructs runtime system to traverse the shared library list in a | |
|
| manner when calling static constructors and when loading the libraries. The default is to traverse |
|
| the shared libraries in a |
|
| of static constructors within each shared library is not affected by this option. |
|
| In HP aC++, |
|
| |
Preprocessor Options | ||
|
|
|
| Requests the compatibility mode HP C++ preprocessor, cpp. This option is not available in HP | |
|
| aC++. |
|
|
|
| Prevents the preprocessor from stripping comments from your source file. In HP aC++ comments | |
|
| are retained. |
|
|
|
| The | |
|
| subprocess for the preprocessor. |
|
| Use the CC command (HP C++) as a workaround: |
|
| Example: |
|
| CC prog.C |
|
| 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. | |
|
|
|
| Invokes ld instead of nm to do simulated linking. | |
|
|
|
| Uses short file names for template instantiation files. | |
|
|
|
| Specifies file name extensions for template declaration files (header files). | |
|
|
|
| Instantiates at link time rather than at compile time. | |
|
|
|
| Specifies an alternate location for the template repository. | |
|
|
|
200 Migrating from HP C++ (cfront) to HP aC++