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 />

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

typedef.<br />

__LINE__ num Always set. It is the source line number of the line of code containing<br />

this macro.<br />

__MODULE__ mod Contains the filename part of the value of __FILE__.<br />

__NO_INLINE__ – When you specify the --no_inline option in GNU mode.<br />

__OPTIMISE_LEVEL num Always set to 2 by default, unless you change the optimization level<br />

using the -Onum option.<br />

__OPTIMISE_SPACE – When you specify the -Ospace option.<br />

__OPTIMISE_TIME – When you specify the -Otime option.<br />

__OPTIMIZE__ – When -O1, -O2, or -O3 is specified in GNU mode.<br />

__OPTIMIZE_SIZE__ – When -Ospace is specified in GNU mode.<br />

__PLACEMENT_DELETE – In C++ mode to specify that placement delete (that is, an operator<br />

delete corresponding to a placement operator new, to be called if the<br />

constructor throws an exception) is enabled. This is only relevant when<br />

using exceptions.<br />

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

typedef.<br />

__RTTI – In C++ mode when RTTI is enabled.<br />

__sizeof_int 4 For sizeof(int), but available in preprocessor expressions.<br />

__sizeof_long 4 For sizeof(long), but available in preprocessor expressions.<br />

__sizeof_ptr 4 For sizeof(void *), but available in preprocessor expressions.<br />

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

typedef.<br />

__SOFTFP__ – If compiling to use the software floating-point calling standard and<br />

library. Set when you specify the --fpu=softvfp option for <strong>ARM</strong> or<br />

Thumb, or when you specify --fpu=softvfp+vfpv2 for Thumb.<br />

__STDC__ – In all compiler modes.<br />

__STDC_VERSION__ – Standard version information.<br />

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

Non-Confidential,<br />

ID101213

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

Saved successfully!

Ooh no, something went wrong!