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

4.5.14 __attribute__((zero_init))<br />

The section attribute specifies that a variable must be placed in a particular data section.<br />

The zero_init attribute specifies that a variable with no initializer is placed in a ZI data<br />

section. If an initializer is specified, an error is reported.<br />

Example<br />

__attribute__((zero_init)) int x; /* in section ".bss" */<br />

__attribute__((section("mybss"), zero_init)) int y; /* in section "mybss" */<br />

See also<br />

• __attribute__((section("name"))) on page 4-52.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!