4.16 Compiler and processor support for bit-banding

The compiler supports bit-banding for processors that provide the feature.

The compiler supports bit-banding in the following ways:

  • __attribute((bitband)) language extension.

  • --bitband command-line option.

Bit-banding is a feature of the Cortex-M3 and Cortex-M4 processors (--cpu=Cortex-M3 and --cpu=Cortex-M4) and some derivatives (for example, --cpu=Cortex-M3-rev0). This functionality is not available on other ARM processors.

Related concepts
4.17 Compiler type attribute, __attribute__((bitband))
4.18 --bitband compiler command-line option
4.19 How the compiler handles bit-band objects placed outside bit-band regions
Related reference
10.55 __attribute__((bitband)) type attribute
10.61 __attribute__((at(address))) variable attribute
8.17 --bitband
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.