Download HP UPC Unified Parallel C (UPC) Programmer`s Guide

Transcript
Compiling and Running UPC Programs
4.2 Macro Names
In addition, macro names that begin with two leading underscore characters
(_ _) or a single underscore character followed by a capital letter (for example,
_WCHAR_T) are reserved for the implementation.
Name
Function
_ _alpha1
System has an Alpha processor
_ _alpha_ _1
_ _ALPHA
System has an Alpha processor
1
System has an Alpha processor
_ _arch64_ _
1
_ _compaq_ _
System with 64-bit architecture
1
Compiler is provided by Compaq Computer
Corp.
_ _COMPAQ_UPC_VER1
Indicates the version of HP UPC being used;
a value of 20020001 means V2.2-001
_ _DECC1
Compiler is compatible with Compaq C
_ _digital_ _
1
System identification name on Tru64 UNIX
_ _EDG_ _
Compiler is built with EDG front end
technology
_ _EDG_VERSION_ _
Version number of EDG front end technology
_ _hp_ _
Compiler is provided by Hewlett-Packard
Company
_hppa2
Defined for compatibility with HP-UX
system header files
_hpux2
Defined for compatibility with HP-UX
system header files
_ _HP_UPC_VER
Indicates the version of HP UPC being used;
a value of 20020001 means V2.2-001
_HPUX_SOURCE2
Defined for compatibility with HP-UX
system header files
_ _IEEE_FLOAT1
The compiler supports IEEE floating point
_ _LANGUAGE_C_ _1
Compiler translates C language constructs
and keywords
_ _LANGUAGE_UPC_ _
Compiler translates UPC language
constructs and keywords
_LONGLONG1
Compiler supports "long long" type
declarations
_LP642
Defined for compatibility with HP-UX
system header files
_ _LP642
Defined for compatibility with HP-UX
system header files
_ _LP64_ _2
Defined for compatibility with HP-UX
system header files
_ _osf_ _
_HPUX_SOURCE
System is a Tru64 UNIX system
2
Defined for compatibility with HP-UX
system header files
_ _PRAGMA_ENVIRONMENT1
The compiler supports pragma environment
_ _SIGNED_CHARS_ _2
Ensures that signed chars are the default
1 Tru64
UNIX only
2 HP-UX
only
Compiling and Running UPC Programs 4–3