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

• Bit-banded accesses are not generated for const objects, pointers, and local<br />

objects.<br />

See also<br />

• __attribute__((at(address))) on page 4-48<br />

• Bit-banding on page 4-16 in the Compiler User Guide<br />

• Technical Reference Manual for your processor.<br />

4.4.2 __attribute__((aligned))<br />

The aligned type attribute specifies a minimum alignment for the type.<br />

Note<br />

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

4.4.3 __attribute((packed))<br />

The packed type attribute specifies that a type must have the smallest possible alignment.<br />

Note<br />

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

Errors<br />

The compiler generates a warning message if you use this attribute in a typedef.<br />

See also<br />

• __packed on page 4-11<br />

• #pragma pack(n) on page 4-68<br />

• Packed structures on page 5-10<br />

• The __packed qualifier and unaligned data access on page 5-27 in the Compiler<br />

User Guide<br />

• __packed structures versus individually __packed fields on page 5-28 in the<br />

Compiler User Guide.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!