| United States-English |
|
|
|
![]() |
HP-UX 64-bit Porting and Transition Guide: HP 9000 Computers > Chapter 2 Summary of Changes HP C |
|
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 +DD64 or +DA2.0W command line options.
The HP C 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, ints, longs, and pointer types are 32 bits in size. In 64-bit mode, longs and pointers are 64-bits, and ints remain 32-bits. Table 2-1 “ Differences between HP-UX 32-bit and 64-bit Data Models” shows the differences in C data type sizes and alignments: Table 2-1 Differences between HP-UX 32-bit and 64-bit Data Models
You may need to make source code changes, when transitioning to the HP-UX 64-bit data model, to correct assumptions made about the size and relationship of int, long, and pointer data types. Examples of programs that will require change include:
HP C 11.0 New Features. The following are new or changed HP C features included in the HP-UX 11.0 release: Table 2-2 New and Changed HP C Features
For More Information:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||