您的位置:首页 > 其它

__attribute_used__的作用

2015-10-24 12:09 295 查看
GCC的一个扩展属性

在Linux上这样的定义
#define __attribute_used__ __attribute__((__used__))

used 
     This attribute, attached to a function, means that code must be
     emitted for the function even if it appears that the function is
     not referenced.  This is useful, for example, when the function is
     referenced only in inline assembly.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: