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 Pascal/HP-UX Release Notes: HP 9000 Series Systems > Chapter 1 New and Changed Features

+DA Command-Line Option

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

+DAmodel

Generates object code for a particular version of the PA-RISC architecture. Also specifies which version of the HP-UX math library to link in when you have specified -lm. (See the HP-UX Floating-Point Guide for more information about using math libraries.)

NOTE: Object code generated for PA-RISC 2.0 will not execute on PA-RISC 1.1 systems.

To generate code compatible across PA-RISC 1.1 and 2.0 workstations and servers, use the +DAportable option.

For best performance use +DA with the model number or architecture where you plan to execute the program.

Beginning with the HP-UX 10.20 release, the default object code generated by HP compilers is determined automatically as that of the machine on which you compile. (Previously, the default code generation was PA-RISC 1.0 on all Series 800 servers and PA-RISC 1.1 on Series 700 workstations. With this release, 800 systems 8x7, D, E, F, G, H, I, K, T500, and T520 will now have PA-RISC 1.1 default code generation.)

For example:

+DA1.1
+DA867
+DA2.0
+DAportable

The first two examples generate code for the PA-RISC 1.1 architecture. The third example generates code for the PA-RISC 2.0 architecture. The fourth example generates code compatible across 1.1 and 2.0 workstations and servers.

For More Information:

model Parameter

model can be either a model number of an HP 9000 system (such as 730, 877, F20, or I50); PA-RISC architecture designations 2.0 or 1.1; or the term portable. Use the +DAportable compiler option to generate code compatible across 1.1 and 2.0 workstations and servers. See the file /opt/langtools/lib/sched.models for a list of model numbers and their PA-RISC architecture designations.

Compiling for Different Versions of the PA-RISC Architecture

The instruction set on PA-RISC 2.0 is a superset of the instruction set on PA-RISC 1.1. Code generated for HP 9000 PA-RISC 1.1 systems will run on HP 9000 PA-RISC 2.0 systems, though possibly less efficiently than if it were specifically generated for PA-RISC 2.0.

Code generated for PA-RISC 2.0 will not run on PA-RISC 1.1 systems.

Using +DA to Generate Code for a Specific Version of PA-RISC

When you use the +DA option depends on your particular circumstances.

  • If you plan to run your program on the same system where you are compiling, you don't need to use +DA.

  • If you plan to run your program on one particular model of the HP 9000 and that model is different from the one where you compile your program, use +DAarchitecture with the model number of the target system.

    For example, if you are compiling on a 720 and your program will run on an 855, use +DA855.

  • If you plan to run your program on PA-RISC 2.0 and 1.1 models of the HP 9000, use +DAportable.

Compiling in Networked Environments. When compiles are performed using diskless workstations or NFS-mounted file systems, it is important to note that the default code generation and scheduling are based on the local host processor. The system model numbers of the hosts where the source or object files reside do not affect the default code generation and scheduling.

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