04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Compiler-specific Features<br />

Table 4-24 Predefined macros (continued)<br />

Name Value When defined<br />

__thumb__ – When the compiler is in Thumb mode. That is, you have either<br />

specified the --thumb option on the command-line or #pragma thumb in<br />

your source code.<br />

Note<br />

• The compiler might generate some <strong>ARM</strong> code even if it is<br />

compiling for Thumb.<br />

• __thumb and __thumb__ become defined or undefined when using<br />

#pragma thumb or #pragma arm, but do not change in cases where<br />

Thumb functions are generated as <strong>ARM</strong> code for other reasons<br />

(for example, a function specified as __irq).<br />

__TIME__ time Always defined.<br />

__UINTMAX_TYPE__ – In GNU mode. It defines the correct underlying type for the uintmax_t<br />

typedef.<br />

__USER_LABEL_PREFIX__<br />

In GNU mode. It defines an empty string. This macro is used by some<br />

of the Linux header files.<br />

__VERSION__ ver When you specify the --gnu option. It is a string that shows the current<br />

version of the GNU mode being used.<br />

_WCHAR_T – In C++ mode, to specify that wchar_t is a keyword.<br />

__WCHAR_TYPE__ – In GNU mode. It defines the correct underlying type for the wchar_t<br />

typedef.<br />

__WCHAR_UNSIGNED__ – In GNU mode when you specify the --cpp option. It is defined if and<br />

only if wchar_t is an unsigned type.<br />

__WINT_TYPE__ – In GNU mode. It defines the correct underlying type for the wint_t<br />

typedef.<br />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. 4-203<br />

ID101213<br />

Non-Confidential,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!