GNU __attribute__分析1 概述2 规范3 函数属性(Function Attribute)4 变量属性(Variable Attributes)5 类型属性(Type Attribute)6 同时使用多属性7 非GNU处理
1 概述__attribute__机制可以设置函数属性(Function Attribute)、变量属性(Variable Attribute)和类型属性(Type Attribute)。主要有用于改变所申明或定义的函数或数据的特性。2 规范语法格式为:__attribute__ ((attribute-list))其位置约束为:放于声明的尾部“;”之前。attribute_适用于函数的声明