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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiler-specific Features<br />

Table 4-25 shows the possible values for __TARGET_ARCH_THUMB (see Table 4-24 on<br />

page 4-198), and how these values relate to versions of the <strong>ARM</strong> architecture.<br />

Table 4-25 Thumb architecture versions in relation to <strong>ARM</strong> architecture versions<br />

<strong>ARM</strong> architecture __TARGET_ARCH_<strong>ARM</strong> __TARGET_ARCH_THUMB<br />

v4 4 0<br />

v4T 4 1<br />

v5T, v5TE, v5TEJ 5 2<br />

v6, v6K, v6Z 6 3<br />

v6T2 6 4<br />

v6-M, v6S-M 0 3<br />

v7-A, v7-R 7 4<br />

v7-M 0 4<br />

4.11.2 Function names<br />

Table 4-26 lists builtin variables supported by the <strong>ARM</strong> compiler for C and C++.<br />

Table 4-26 Builtin variables<br />

Name<br />

__FUNCTION__<br />

__PRETTY_FUNCTION__<br />

Value<br />

Holds the name of the function as it appears in the source.<br />

__FUNCTION__ is a constant string literal. You cannot use the preprocessor to join the<br />

contents to other text to form new tokens.<br />

Holds the name of the function as it appears pretty printed in a language-specific fashion.<br />

__PRETTY_FUNCTION__ is a constant string literal. You cannot use the preprocessor to join<br />

the contents to other text to form new tokens.<br />

4-204 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!