29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Standard C Implementation Definition<br />

B.1.9<br />

Structures, unions, enumerations, and bitfields<br />

The ISO/IEC C standard requires the following implementation details to be<br />

documented for structured data types:<br />

• the outcome when a member of a union is accessed using a member of different<br />

type<br />

• the padding and alignment of members of structures<br />

• whether a plain int bitfield is treated as a signed int bitfield or as an unsigned int<br />

bitfield<br />

• the order of allocation of bitfields within a unit<br />

• whether a bitfield can straddle a storage-unit boundary<br />

• the integer type chosen to represent the values of an enumeration type.<br />

See Chapter 5 C and C++ Implementation Details for more information.<br />

Unions<br />

See Unions on page 5-7 for information.<br />

Enumerations<br />

See Enumerations on page 5-7 for information.<br />

Padding and alignment of structures<br />

See Structures on page 5-8 for information.<br />

Bitfields<br />

See Bitfields on page 5-10 for information.<br />

B.1.10<br />

Qualifiers<br />

An object that has a volatile-qualified type is accessed if any word or byte or halfword<br />

on <strong>ARM</strong> architectures that have halfword support, or it is read or written. For<br />

volatile-qualified objects, reads and writes occur as directly implied by the source code,<br />

in the order implied by the source code.<br />

The effect of accessing a volatile-qualified short is undefined on <strong>ARM</strong> architectures<br />

that do not have halfword support.<br />

B-6 Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0348A<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!