HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)
Example:
The following example generates code for the HP-UX 11.22 (or later) operating system.
Binary incompatible features introduced in later OS versions are inhibited.
aCC +DO11.22 +O3 app.C
+DDdata_model
The +DDdata_model option specifies the data model for the compiler.
data_model can be one of the following:
• 32 (This value generates ILP32 code and is the default.)
• 64 (This value generates LP64 code.)
This option specifies the data model for the compiler. Table 2 lists the differences between
the two data models.
Table 2 ILP32 Data Model and LP64 Data Model
LP64 Data ModelILP32 Data Model
The size of an int data type is 32-bits. The size of a
long or pointer data type is 64-bits.
The size of an int, long, or pointer data type
is 32-bits.
The preprocessor predefined macros__LP64__ and
_LP64 are defined.
The preprocessor predefined macro _ILP32 is
defined.
Examples:
The following command generates code for the 64-bit data model:
aCC +DD64 app.C
The following command generates code for the 32-bit data model:
aCC app.C
+DSmodel
The +DSmodel option performs instruction scheduling for a particular implementation
of the Itanium®-based architecture.
model can be one of the following values.
blended Tune to run reasonably well on multiple implementations. As old
implementation become less important and new implementations are
added, the behavior with this value will change accordingly.
itanium
Tune for the Itanium® processor.
itanium2
Tune for the Itanium2® processor.
mckinley
See itanium2® .
36 Command-Line Options