Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX 64-bit Porting and Transition Guide: HP 9000 Computers > Chapter 2 Summary of Changes

HP aC++

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

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.0 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.0 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.)

+hugesize

Lowers the threshold for huge data objects allocated to the huge data space (.hbss).

__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-lbit mode code.

 

For More Information:

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1998 Hewlett-Packard Development Company, L.P.