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 1 Overview

Cross-Platform Development

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

HP-UX 11.00 provides a cross-platform development environment. You can compile and link both 32-bit and 64-bit applications on HP-UX 11.00 32-bit systems. Also, you can compile and link both 32-bit and 64-bit applications on HP-UX 11.00 64-bit systems.

You can optionally install 64-bit versions of HP-UX 11.00 system libraries on HP-UX 11.00 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.00 in order to test 64-bit programs.

Compiler Options for Cross Development

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

Option

PA-RISC 1.1 32-bit Platforms

PA-RISC 2.0 64-bit Platforms

+DA1.1

X

X

+DAportable

X

X

+DA2.0 or +DA2.0N

X

+DD64 [1] or +DA2.0W [2]

X

[1] HP C supports this option for compiling in 64-bit mode.

[2] HP aC++ and HP C support this option for compiling in 64-bit mode. (It is the same as +DD64.)

 

Please note the following cross-platform limitations:

  • Debugging and program dump analysis tools for 64-bit programs are only supported on 64-bit HP-UX.

  • Kernel cross-platform development is not supported. If the device driver refers to kernel header files and libraries, development must be done on the same platform as the target run-time platform.

Compiling in Networked Environments

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:

  • See the /opt/langtools/lib/sched.models file for system model numbers, architectures, and processor names.

  • Use the command model to determine the model number of your system.

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