| United States-English |
|
|
|
![]() |
HP-UX 64-bit Porting and Transition Guide: HP 9000 Computers > Chapter 1 Overview Cross-Platform Development |
|
HP-UX 11.0 provides a cross-platform development environment. You can compile and link both 32-bit and 64-bit applications on HP-UX 11.0 32-bit systems. Also, you can compile and link both 32-bit and 64-bit applications on HP-UX 11.0 64-bit systems. You can optionally install 64-bit versions of HP-UX 11.0 system libraries on HP-UX 11.0 32-bit systems for cross-development. The 64-bit system libraries are in separate directories from the 32-bit system libraries. Linking 32-bit and 64-bit object files (.o, .sl, .a) together is not supported. All modules in a program must be linked from either 32-bit objects or 64-bit objects. You will need access to a 64-bit hardware platform running the 64-bit version of HP-UX 11.0 in order to test 64-bit programs. Unless specified, HP compilers generate object files that are compatible with the hardware on which you are compiling. HP-UX 64-bit platforms use the PA-RISC 2.0 system architecture. The default compilation mode for these systems is 32-bit narrow mode for PA-RISC 2.0. PA-RISC 2.0 narrow mode programs only run on PA-RISC 2.0 systems. The compiler command line option for this mode is +DA2.0 or +DA2.0N. (+DA means destination architecture.) HP compilers generate 64-bit mode code when you specify the +DA2.0W command-line option. This is known as PA-RISC 2.0 wide mode. PA-RISC 2.0 wide mode programs only run on PA-RISC 2.0 systems running the 64-bit version of HP-UX. Table 1-2 “Compiler Option / Hardware Architecture Run-time Compatibility ” shows various compiler options for compiling to 32-bit and 64-bit mode and what systems the executables run on: Table 1-2 Compiler Option / Hardware Architecture Run-time Compatibility
Please note the following cross-platform limitations: When compiles are performed using diskless workstations or NFS-mounted file systems, the default code generation and scheduling is based on the local host processor. The system model numbers of the hosts where the source files reside do not affect the default code generation. For More Information:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||