HP 3000 Manuals

HP_DESTINATION [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation


HP Pascal/iX Reference Manual

HP_DESTINATION 
[REV BEG] 

HP_DESTINATION is a System-Dependent HP-UX Option.

Syntax 

$HP_DESTINATION '{ARCHITECTURE PAmodel}'$
                 {SCHEDULER PAmodel   }
Where: 

ARCHITECTURE     Specifies the desired destination architecture.

                 PAmodel    Can be a model number, such as 750 or 870, or
                            one of the following architecture
                            specifications:

                            1.0  Generates object code suitable for all
                                 implementations of PA-RISC 1.0 or
                                 higher.  This is the default for the
                                 Series 800 models.

                            1.1  Generates object code suitable for all
                                 implementations of PA-RISC 1.1.  This is
                                 the default for all Series 700 models.

SCHEDULER        Specifies the desired instruction scheduling algorithm.

                 PAmodel    Can be a model number, such as 750 or 870, or
                            one of the following architecture
                            specifications:

                            1.0  Performs generic scheduling tuned to a
                                 model representative of PA-RISC 1.0
                                 implementations.

                            1.1  Performs generic scheduling tuned to a
                                 model representative of PA-RISC 1.1
                                 implementations.

Default             The native architecture of the machine the program is
                    being compiled on.

Location            The beginning of the source file.

HP_DESTINATION 'ARCHITECTURE' Option 

The HP_DESTINATION 'ARCHITECTURE' option specifies your intended
destination architecture so you can cross-compile a program to run on a
different PA-RISC architecture without having to purchase that machine.
Specifying a destination architecture ensures that the compiler generates
appropriate object code for that destination architecture.

The first occurrence of the HP_DESTINATION 'ARCHITECTURE' option takes
precedence over later occurrences of the same option.  For more
information on HP_DESTINATION 'ARCHITECTURE', refer to the HP Pascal/iX 
Programmer's Guide or the HP Pascal/HP-UX Programmer's Guide, depending
on your implementation.[REV END]
[REV BEG]


NOTE If you specify an architecture other than the native architecture of your machine, your compiled program may not run on your machine. Specifically, code compiled with HP_DESTINATION 'ARCHITECTURE PA1.1' may not run on a PA-RISC 1.0 machine.

NOTE A program containing the HP_DESTINATION 'ARCHITECTURE' compiler option must be linked with the pc command line option +DAmodel. This is because +DAmodel does more than specify the destination architecture. It also specifies which math libraries the program is to be linked with: PA-RISC 1.0 or PA-RISC 1.1. See the HP-UX Floating Point Guide for more information about using math libraries.
HP_DESTINATION 'SCHEDULER' Option The HP_DESTINATION 'SCHEDULER' option specifies an instruction scheduling algorithm that is not native to your architecture; it optimizes your program for a PA-RISC architecture other than the one you are compiling on. The first occurrence of the HP_DESTINATION 'SCHEDULER' option takes precedence over later occurrences of the same option. For more information on HP_DESTINATION 'SCHEDULER', refer to the HP Pascal/iX Programmer's Guide or the HP Pascal/HP-UX Programmer's Guide, depending on your implementation. Note that the command line option +DSmodel also specifies this option. This option can be used with the HP_DESTINATION 'ARCHITECTURE' option. For example, if you want your program to run on both a PA-RISC 1.0 architecture machine and a PA-RISC 1.1 architecture machine, you can use HP_DESTINATION 'ARCHITECTURE PA1.0' to specify PA-RISC 1.0 architecture. Because the PA-RISC 1.1 instruction set is a superset of the PA-RISC 1.0 instruction set, the code will run on both machines. If you use HP_DESTINATION 'SCHEDULER PA1.1', your program will run on both architectures, but will run as fast as possible on PA-RISC 1.1 architecture machines.[REV END]


MPE/iX 5.0 Documentation