HP aCC

Online References

Predefined Macros

See the Predefined Macros section of the HP aCC 6 Programmers Guide for a (possibly) incomplete list of macros predefined by the compiler.

Starting with HP aCC 6.15, the compiler supports the -dM option to list the #define directives the preprocessor encounters as it translates a file.

See also the Bjørn Reese's list of Pre-defined Compiler Macros.

HP aCC Predefined Macros

MACRO

HP aCC OPTION

VERSION

DESCRIPTION

__EDG__

6

Defined to 1 in all EDG-based HP aCC compilers.

__HP_aCC

all

Defined to the version of the compiler in the format MMmmuu (2 digits for each of major, minor, and micro).

__hpxstd98

+hpxstd98

3.80

Defined to 1 when the +hpxstd98 option is used.

__hpux

all

Defined on all HP-UX versions.

__ia64

5,6

Defined on HP IPF hardware.

__hppa

1, 3

Defined on PA-RISC hardware.

__unix

all

Defined on all HP-UX versions.

_BIG_ENDIAN

all

Defined on Big Endian versions of HP-UX (both IPF and PA-RISC).

_ILP32

+DD32

all

Defined when +DD32 is in effect.

_LP64, __LP64__

+DD64

all

Defined when +DD64 is in effect.

__HPACC_NOEH

+noeh

all

Defined when exceptions are disabled.

_HPUX_SOURCE, __STDC_EXT__

-ext

all

Defined when extensions are enabled.

_FPWIDETYPES

-fpwidetypes

Defined when extended and quad floating-point data types including __float80 are enabled.

_REENTRANT

-mt

all

Defined when compiling for thread safety.

_POSIX_C_SOURCE=199506L

-mt

all

_HPUX_SOURCE

-mt

all

_THREAD_SAFE

-AP -mt

all

_HP_NAMESPACE_STD

-AA

Defined when the C++ Standard Library is declared in namespace std.

_FLT_EVAL_METHOD

-fpeval

all

Defined according to the argument of the -fpeval option.

_Math_errhandling 

all

Always defined to MATH_ERREXCEPT.

Discussion Forums

Bug Reports

HP_aCC (last edited 2009-09-20 23:03:00 by localhost)