4.19 How the compiler handles bit-band objects placed outside bit-band regions

Bit-band objects must not be placed outside bit-band regions.

If you do inadvertently place a bit-band object outside a bit-band region, either using the at attribute, or using an integer pointer to a particular address, the compiler responds as follows:

  • If the bitband attribute is applied to an object type and --bitband is not specified on the command line, the compiler generates an error.

  • If the bitband attribute is applied to an object type and --bitband is specified on the command line, the compiler generates a warning, and ignores the request to bit-band.

  • If the bitband attribute is not applied to an object type and --bitband is specified on the command line, the compiler ignores the request to bit-band.

Non-ConfidentialPDF file icon PDF versionARM DUI0472M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.