__attribute_used__的作用

来源:互联网 发布:网络追逃能坐火车吗 编辑:程序博客网 时间:2024/06/05 17:01
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.
0 0
原创粉丝点击