__attribute__是GNU对标准C的扩展,可以用来设置函数属性(Function Attribute)、变量属性(Variable Attribute)和类型属性(Type Attribute)。
__attribute__使用
1 __attribute__((used))
函数被标记在目标文件中,即使未使用也避免被优化掉。
__attribute__是GNU对标准C的扩展,可以用来设置函数属性(Function Attribute)、变量属性(Variable Attribute)和类型属性(Type Attribute)。
__attribute__使用
1 __attribute__((used))
函数被标记在目标文件中,即使未使用也避免被优化掉。