Skip to content
Erik Rainey edited this page Apr 30, 2014 · 4 revisions

Welcome to the Concerto wiki!

Predefined Macros for Use in Programs Compiled with Concerto:

Compiler Macros

__GNUC__ = Gnu C Compiler
__clang__ = Clang Compiler (will have __GNUC__ defined too)
__TI_ARM__ = TI ARM Compiler
_MSC_VER = Microsoft Compiler
__TMS320C6X__ = TI C6x Compiler
__ARP32__ = TI ARP Compiler

OS Macros

_WIN32 = Windows NT, later, 32 bit
_WIN64 = Windows 64 bit
__linux__ = Linux
__CYGWIN__ = Cygwin
__QNX__ = QNX
__ANDROID__ = Android (will also have __linux__)
__APPLE__ = MacOSX (will also have __MACH__)

Environments

__unix__ = A Unix-like Environment

Languages

__cplusplus = C++
__STDC__ = C89 or later (not defined on Windows)
(__STDC_VERSION__ == 199901L) = C99

CPU Macros

GCC, CLANG

__amd64__ = AMD64 Extensions
__x86_64__ = x86 64 bit extensions

Windows

_M_X64 = 64 bit X86
_M_X86 = 32 bit X86
_M_ARM = 32 bit ARM
Clone this wiki locally