Page tree
Skip to end of metadata
Go to start of metadata

Compiler Resources


GNU gcc

See the gcc page.


HP aCC

See the HP aCC page.


HP (formerly Compaq, formerly DEC) C++

Online References

Predefined Macros

 

 

 

HP C++ Predefined Macros

 

 

 

MACRO

Arch

HP C++ OPTION

VERSION

DESCRIPTION

osf

 

 

 

 

digital

 

 

 

 

_SYSTYPE_BSD

 

 

 

 

unix, __unix

 

 

 

 

__INITIAL_POINTER_SIZE=0

 

 

 

 

arch64

 

 

 

 

__IEEE_FLOAT

 

 

 

 

__Alpha_AXP

 

 

 

 

_LONGLONG

 

 

 

 

alpha, +alpha, +ALPHA

 

 

 

 

__DECCXX_VER=70190006

 

 

 

 

__MODEL_ARM

 

 

 

 

__STD_ANSI

 

 

 

 

__IMPLICIT_INCLUDE_ENABLED

 

 

 

 

__STDNEW

 

 

 

 

__X_FLOAT

 

 

 

 

__PRAGMA_ENVIRONMENT

 

 

 

 

__DECCXX

 

 

 

 

EDG_VERSION=304

 

 

 

 

EDG

 

 

 

 

__IMPLICIT_USING_STD

 

 

 

 

__RTTI

 

 

 

 

__EXCEPTIONS

 

 

 

 

__GLOBAL_ARRAY_NEW

 

 

 

 

__BOOL_IS_A_RESERVED_WORD

 

 

 

 

_BOOL_EXISTS

 

 

 

 

__WCHAR_T

 

 

 

 

_WCHAR_T

 

 

 

 

__cplusplus=199711L

 

 

 

 

TIME

 

 

 

 

DATE

 

 

 

 

Discussion Forums

Bug Reports


IBM XLC/C++

Online References

Predefined Macros

  • Macros defined by the compiler are documented in the Predefined Macros chapter in the online reference.

Discussion Forums

Bug Reports


Intel C++

Online References

  • Intel Compilers page.
  • [http://software.intel.com/sites/products/documentation/hpc/compilerpro/en-us/cpp/lin/compiler_c/index.htm|Intel® C++ Compiler 11.1 User and Reference Guides]].

Predefined Macros

 

 

 

Intel C++ Predefined Macros

 

 

 

MACRO

Arch

OS

Intel C++ OPTION

VERSION

DESCRIPTION

__INTEL_COMPILER

all

all

 

all

Defined to 1.

__ECC

IA64

all

 

all

Defined to the compiler version.

EDG

all

all

 

all

Always defined to 1.

EDG_VERSION

all

all

 

all

Defined to the version of the EDG eccp front end used by the compiler.

GNUC

all

Linux

 

all

Defined to the major version of gcc the compiler is configure to use.

GNUG

all

Linux

 

all

Defined to the same value as GUNC in C++ mode.

+i386, +i386__, i386

i86

all

 

all

Defined to 1 on i86 and compatible processors.

+ia64, +ia64__

IA64

all

 

all

Defined to 1 on IA64 processors.

__ICC

i86, Intel 64

all

 

all

Defined to the compiler version.

__INTEL_COMPILER

all

all

 

all

Defined to the compiler version.

__INTEL_COMPILER_BUILD_DATE

all

all

 

8.0+

Defined to the compiler build date in the format YYYYMMDD.

itanium

IA64

all

 

all

Defined to 1 on IA64 processors.

+linux, +linux__, linux

all

Linux

 

all

Defined to 1 on Linux.

+lp64, +LP64__, _LP64

Intel 64, IA64

all

 

all

Defined to 1 in LP64 mode.

PTRDIFF_TYPE

all

all

 

all

Defined to the underlying type of ptrdiff_t.

SIZE_TYPE

all

all

 

all

Defined to the underlying type of size_t.

+unix, +unix__, unix

all

Linux

 

all

Defined to 1 on Linux.

VERSION

all

all

 

all

Defined to the version string.

WCHAR_TYPE

all

all

 

all

Defined to the underlying type of wchar_t.

WINT_TYPE

all

all

 

all

Defined to the underlying type of wint_t.

+x86_64, +x86_64__

Intel 64

all

 

all

Defined to 1 on Intel 64 and compatible processors (including AMD64).

Discussion Forums

Bug Reports


SGI MIPSpro

Online References

Predefined Macros

Discussion Forums

Bug Reports


Sun C++

Online References

Predefined Macros

Discussion Forums

Bug Reports

Performance Tuning


Microsoft Visual Studio

Online References

  • MSDN Library
  • Microsoft Visual Studio 2008 (AKA MSVC 9.0)
  • Microsoft Visual Studio 2005 (AKA MSVC 8.0)
  • Microsoft Visual Studio .NET (AKA MSVC 7.1)
  • Microsoft Visual Studio 6.0 (AKA MSVC 6.0)

Predefined Macros

Discussion Forums

Bug Reports


CategoryPlatform

  • No labels