Note that this option does not pass source files to the C preprocessor. To do that, you

 

must also specify the +cpp=yes option.

-D name[=def]

-Ddefines a symbol name (name)to the C preprocessor. If you do not provide a

 

definition (def) for the symbol name, name is defined as 1. This option applies only

 

to files that are passed to the C preprocessor.

+DAmodel

+DA generates object code for a particular version of the PA-RISC architecture. By

 

default, the compiler generates code for the machine model you are compiling on.

 

With this option, you can override the default, causing the compiler to generate code

 

for the machine on which the program will execute rather than for the machine on

 

which it is compiled.

 

modelcan be one of the following:

 

A PA-RISC version number (1.1or2.0™)

 

A model number (for example, 750or870)

 

One of the PA-RISC processor names (for example, PA7000, PA7100, or PA8000)

 

The word portable, which causes the compiler to generate code that is compatible

 

across all PA-RISC 1.1 and 2.0 systems

 

For best performance, use +DA with the model number or architecture of the machine

 

on which you plan to execute the program.

 

The +DA option also specifies the appropriate search path for HP-UX math libraries.

 

If your program calls mathematical functions,+DA2.0 links in the PA2.0 version of

 

the math library, while +DA1.1 links in the PA1.1 library version. (For more information

 

about using math libraries, see the HP-UXFloating-Point Guide.)

 

With +DA2.0W, memory addresses are 64-bit values. This allows common blocks

 

and dynamically allocated memory to exceed 32-bit address limits. This feature is

 

restricted by the available virtual memory on the system where the application is run.

 

NOTE:

You must specify +DA2.OW to generate 64-bit code. At PA64, all data types

 

remain the same size as at PA32 except for pointers. Fortran pointers are hidden

 

from the user and cannot be directly manipulated

+DA2.OW

Changes the default size of a Cray pointer. It will become the large of a default-sized

 

integer and a C pointer (8-bytes), rather than the 4-byte default.

+DC

Specifies cache values to the compiler. The syntax is +DC <a>:<b>:<c>:

 

where <a> is the total cache size in bytes where <b> is the cache line size in

 

bytes; and <c> cache associativity.

+DC7200

+DC7200performs memory hierarchy optimizations for the PA7200 processor.

+DDdatamodel

Generate code using either the ILP32or LP64data model. Defined values for

 

datamodelare:

 

32

Use the ILP32data model. The sizes of the int, long, and

 

 

pointer data types are 32-bits.

 

64

Use the LP64data model. The size of the int data type is

 

 

32-bits, and the sizes of the long and pointer data types are

 

 

64-bits. Defines LP64 to the preprocessor.

 

The default is +DD32.

+[no]demand_load

+demand_load causes the output file from the linker to be marked demand load.

 

When a process is marked demand load, its pages are brought into physical memory

 

only when they are accessed. The default, +nodemand_ load, causes the output file

 

from the linker not to be marked demand load. The -qoption performs the same

 

function as +demand_load, and the -Qoption performs the same function as

 

+nodemand_load.

+dfname

Specify profile database file name for profile-based optimizations.

+dfrequires the specification of +P.

This option is a synonym for +Oprofile=use: filename.

This option is only valid on the Itanium® processor family architecture.

The default is flow.dataif a name is not specified.

Command-line options 25

Page 25
Image 25
HP UX Fortran Software manual Name=def, +DAmodel, +DDdatamodel, Datamodelare, +dfname