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

Note<br />

This function attribute is a GNU compiler extension that is supported by the <strong>ARM</strong><br />

compiler. It has the __declspec equivalent __declspec(noinline).<br />

Example<br />

int fn(void) __attribute__((noinline));<br />

int fn(void)<br />

{<br />

return 42;<br />

}<br />

See also<br />

• #pragma inline, #pragma no_inline on page 4-66<br />

• __attribute__((noinline)) constant variable attribute on page 4-51<br />

• __declspec(noinline) on page 4-27.<br />

4.3.7 __attribute__((no_instrument_function))<br />

This function attribute excludes the function from the instrumentation that is achieved<br />

with --gnu_instrument.<br />

See also<br />

• --gnu_instrument, --no_gnu_instrument on page 2-68.<br />

4.3.8 __attribute__((nomerge))<br />

This function attribute prevents calls to the function that are distinct in the source from<br />

being combined in the object code.<br />

See also<br />

• __attribute__((notailcall)) on page 4-37<br />

• --retain=option on page 2-113.<br />

4.3.9 __attribute__((nonnull))<br />

This function attribute specifies function parameters that are not supposed to be null<br />

pointers. This enables the compiler to generate a warning on encountering such a<br />

parameter.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!