Differences between revisions 3 and 4
Revision 3 as of 2008-09-08 19:37:10
Size: 4321
Editor: MartinSebor
Comment: Added link to cxx-dev archives at MARC.
Revision 4 as of 2009-09-20 23:03:00
Size: 4373
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
 * [http://h21007.www2.hp.com/portal/site/dspp Developer & Solution Partner Program (DSPP)]
 * [http://www.docs.hp.com/en/index.html Technical Documentation] (including operating systems and other software)
 * [http://www.docs.hp.com/en/dev.html Development Tools Documentation]
 * [http://www.hp.com/go/c++ HP aC++ Product Home]
 * [http://docs.hp.com/en/10946/index.htm HP aC++/HP C A.06.15 Online Programmer's Guide]
 * [http://docs.hp.com/en/11920/HP%20aC++%20Online%20Programmer's%20Guide/index.htm HP aC++ A.03.80 Online Programmer's Guide]
 * [http://www.docs.hp.com/en/11925/Diagnostics_Documentation/Diagnostics_index.htm HP Code Advisor Diagnostics]
 * [[http://h21007.www2.hp.com/portal/site/dspp|Developer & Solution Partner Program (DSPP)]]
 * [[http://www.docs.hp.com/en/index.html|Technical Documentation]] (including operating systems and other software)
 * [[http://www.docs.hp.com/en/dev.html|Development Tools Documentation]]
 * [[http://www.hp.com/go/c++|HP aC++ Product Home]]
 * [[http://docs.hp.com/en/10946/index.htm|HP aC++/HP C A.06.15 Online Programmer's Guide]]
 * [[http://docs.hp.com/en/11920/HP%20aC++%20Online%20Programmer's%20Guide/index.htm|HP aC++ A.03.80 Online Programmer's Guide]]
 * [[http://www.docs.hp.com/en/11925/Diagnostics_Documentation/Diagnostics_index.htm|HP Code Advisor Diagnostics]]
Line 15: Line 15:
See the [http://docs.hp.com/en/10946/preprocess.htm#macropredef Predefined Macros] section of the [http://docs.hp.com/en/10946/index.htm HP aCC 6 Programmers Guide] for a (possibly) incomplete list of macros predefined by the compiler. See the [[http://docs.hp.com/en/10946/preprocess.htm#macropredef|Predefined Macros]] section of the [[http://docs.hp.com/en/10946/index.htm|HP aCC 6 Programmers Guide]] for a (possibly) incomplete list of macros predefined by the compiler.
Line 17: Line 17:
Starting with HP aCC 6.15, the compiler supports the [http://docs.hp.com/en/10946/options.htm#opt-dM -dM] option to list the #define directives the preprocessor encounters as it translates a file. Starting with HP aCC 6.15, the compiler supports the [[http://docs.hp.com/en/10946/options.htm#opt-dM|-dM]] option to list the #define directives the preprocessor encounters as it translates a file.
Line 19: Line 19:
See also the Bjørn Reese's list of [http://predef.sourceforge.net/precomp.html#sec16 Pre-defined Compiler Macros]. See also the Bjørn Reese's list of [[http://predef.sourceforge.net/precomp.html#sec16|Pre-defined Compiler Macros]].
Line 25: Line 25:
||`__hpxstd98`||[http://docs.hp.com/en/11920/HP%20aC++%20Online%20Programmer's%20Guide/options.htm#opt+hpxstd98 +hpxstd98]||3.80||<style="text-align:left">Defined to 1 when the `+hpxstd98` option is used. || ||`__hpxstd98`||[[http://docs.hp.com/en/11920/HP%20aC++%20Online%20Programmer's%20Guide/options.htm#opt+hpxstd98|+hpxstd98]]||3.80||<style="text-align:left">Defined to 1 when the `+hpxstd98` option is used. ||
Line 31: Line 31:
||`_ILP32`||[http://docs.hp.com/en/10946/options.htm#opt+DDdata_model +DD32]||all||<style="text-align:left">Defined when +DD32 is in effect.||
||`_LP64`, `__LP64__`||[http://docs.hp.com/en/10946/options.htm#opt+DDdata_model +DD64]||all||<style="text-align:left">Defined when +DD64 is in effect.||
||`__HPACC_NOEH`||[http://docs.hp.com/en/10946/options.htm#opt+noeh +noeh]||all||<style="text-align:left">Defined when exceptions are disabled.||
||`_HPUX_SOURCE`, `__STDC_EXT__`||[http://docs.hp.com/en/10946/options.htm#opt-ext -ext]||all||<style="text-align:left">Defined when extensions are enabled.||
||`_FPWIDETYPES`||[http://docs.hp.com/en/10946/options.htm#opt-nofpwidetypes -fpwidetypes]|| ||<style="text-align:left">Defined when extended and quad floating-point data types including `__float80` are enabled.||
||`_REENTRANT`||[http://docs.hp.com/en/10946/options.htm#opt-mt -mt]||all||<style="text-align:left">Defined when compiling for thread safety.||
||`_POSIX_C_SOURCE=199506L`||[http://docs.hp.com/en/10946/options.htm#opt-mt -mt]||all|| ||
||`_HPUX_SOURCE`||[http://docs.hp.com/en/10946/options.htm#opt-mt -mt]||all || ||
||`_THREAD_SAFE`||[http://docs.hp.com/en/10946/options.htm#opt-AP -AP] [http://docs.hp.com/en/10946/options.htm#opt-mt -mt]||all|| ||
||`_HP_NAMESPACE_STD`||[http://docs.hp.com/en/10946/options.htm#opt-AA -AA]|| ||<style="text-align:left">Defined when the C++ Standard Library is declared in `namespace std`.||
||`_FLT_EVAL_METHOD`||[http://docs.hp.com/en/10946/options.htm#opt-fpeval -fpeval]||all||<style="text-align:left">Defined according to the argument of the `-fpeval` option.||
||`_ILP32`||[[http://docs.hp.com/en/10946/options.htm#opt+DDdata_model|+DD32]]||all||<style="text-align:left">Defined when +DD32 is in effect.||
||`_LP64`, `__LP64__`||[[http://docs.hp.com/en/10946/options.htm#opt+DDdata_model|+DD64]]||all||<style="text-align:left">Defined when +DD64 is in effect.||
||`__HPACC_NOEH`||[[http://docs.hp.com/en/10946/options.htm#opt+noeh|+noeh]]||all||<style="text-align:left">Defined when exceptions are disabled.||
||`_HPUX_SOURCE`, `__STDC_EXT__`||[[http://docs.hp.com/en/10946/options.htm#opt-ext|-ext]]||all||<style="text-align:left">Defined when extensions are enabled.||
||`_FPWIDETYPES`||[[http://docs.hp.com/en/10946/options.htm#opt-nofpwidetypes|-fpwidetypes]]|| ||<style="text-align:left">Defined when extended and quad floating-point data types including `__float80` are enabled.||
||`_REENTRANT`||[[http://docs.hp.com/en/10946/options.htm#opt-mt|-mt]]||all||<style="text-align:left">Defined when compiling for thread safety.||
||`_POSIX_C_SOURCE=199506L`||[[http://docs.hp.com/en/10946/options.htm#opt-mt|-mt]]||all|| ||
||`_HPUX_SOURCE`||[[http://docs.hp.com/en/10946/options.htm#opt-mt|-mt]]||all || ||
||`_THREAD_SAFE`||[[http://docs.hp.com/en/10946/options.htm#opt-AP|-AP]] [[http://docs.hp.com/en/10946/options.htm#opt-mt|-mt]]||all|| ||
||`_HP_NAMESPACE_STD`||[[http://docs.hp.com/en/10946/options.htm#opt-AA|-AA]]|| ||<style="text-align:left">Defined when the C++ Standard Library is declared in `namespace std`.||
||`_FLT_EVAL_METHOD`||[[http://docs.hp.com/en/10946/options.htm#opt-fpeval|-fpeval]]||all||<style="text-align:left">Defined according to the argument of the `-fpeval` option.||
Line 46: Line 46:
 * [http://h21007.www2.hp.com/portal/site/dspp/menuitem.ef593a32504c22752c24b83f8973a801/#CXX-dev CXX-DEV] mailing list ([http://marc.info/?l=hpux-cxx-dev MARC archive])  * [[http://h21007.www2.hp.com/portal/site/dspp/menuitem.ef593a32504c22752c24b83f8973a801/#CXX-dev|CXX-DEV]] mailing list ([[http://marc.info/?l=hpux-cxx-dev|MARC archive]])

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)