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++
IBM XLC/C++ home page.
IBM VisualAge C++ home page.
Online References
Reference for XLC++ 9 and prior
XLC/C++ 9.0 for AIX
XLC/C++ 9.0 for Linux
XLC/C++ 8.0 for AIX
XLC/C++ 8.0 for Linux
XLC/C++ 7.0 for AIX
XLC/C++ 7.0 for Linux
VisualAge C++ Library for V6.0 and V5.0.
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
MIPS Pro 7.4 Programmers Guide
MIPS Pro 7.4 Pragmas
MIPS Pro 7.3 Programmers Guide
Predefined Macros
Discussion Forums
Bug Reports
Sun C++
Online References
Sun Studio home page at the Sun Developer Network
Sun Studio C++ Features by Release - List of major compiler features and their availability in each Sun C++ release
Sun Studio 12 Update 1 (CC 5.10) Documentation Online
Sun Studio12 (CC 5.9) Documentation Online
Sun Studio 11 (CC 5.8) Documentation Online
Sun Studio 10 (CC 5.7) Documentation Online
Sun Studio 9 (CC 5.6) Documentation Online
Sun Studio 8 (CC 5.5) Documentation Online
Predefined Macros
Discussion Forums
Bug Reports
Performance Tuning
Microsoft Visual Studio
Microsoft Visual Studio home page.
Online References
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