Technical Support
On-Line Manuals
Compiler Reference Guide
Version 6.15
The __attribute__ keyword enables you to specify special attributes of variables or structure fields, functions, and types.
__attribute__
The keyword format is either of the following:
__attribute__((attribute1, attribute2, ...)) __attribute__((__attribute1__, __attribute2__, ...))
attribute1
attribute2
__attribute1__
__attribute2__
For example:
static int b __attribute__((__unused__));
The available variable attributes are as follows:
__attribute__((alias))
__attribute__((aligned("x")))
x
__attribute__((deprecated))
__attribute__((packed))
__attribute__((section("name")))
name
__attribute__((unused))
__attribute__((used))
__attribute__((visibility("visibility_type")))
visibility_type
__attribute__((weak))
__attribute__((weakref("target")))
target
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.