To generate 32-bit mode code to run on HP-UX 64-bit systems,
no new compiler command line options are required.
To compile in 64-bit mode, use
the +DA2.0W command
line option.
 |
 |  |
 |
 | NOTE: Applications written in HP C++ (cfront) must be migrated
to aC++ prior to compiling in 64-bit mode. For information on migrating
to aC++, see HP aC++ Migration Guide, URL:
http://www.hp.com/lang/cpp/. |
 |
 |  |
 |
The aC++ compiler on HP-UX 11.00 includes support for both
the 32-bit data model and the 64-bit data model. In 32-bit mode,
integer, long, and pointer types are 32 bits in size. In 64-bit
mode, long and pointer types are 64 bits in size, and integers are
32 bits.
The following new HP aC++ features are included in the 11.00
release:
Table 2-3 New aC++ Features
Feature | What it Does |
|---|
+DA2.0W | Compiles in 64-bit mode for the PA-RISC
2.0 architecture. The macros __LP64__
and _PA_RISC2_0
are #defined. |
+DA2.0N | Compiles in 32-bit mode for the PA-RISC
2.0 architecture. The macro _PA_RISC2_0
is #defined.
(Same as +DA2.0.) |
__LP64__ | Macro that is automatically defined by
the HP aC++ compiler when compiling in 64-bit mode. Can be used
within conditional directives to isolate 64-bit mode code. |
For More Information: