Differences between revisions 25 and 26
Revision 25 as of 2009-11-03 20:29:30
Size: 9165
Editor: MartinSebor
Comment: Added links to Sun Studio docs.
Revision 26 as of 2010-09-21 03:18:13
Size: 9218
Editor: MartinSebor
Comment: Updated link to icc user and reference guides.
Deletions are marked like this. Additions are marked like this.
Line 77: Line 77:
 * [[http://www.intel.com/software/products/compilers/docs/clin/main_cls/|Intel® C++ Compiler Documentation]].  * [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]].

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

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

Compilers (last edited 2010-09-21 03:18:13 by MartinSebor)