【发布时间】:2015-05-20 23:42:51
【问题描述】:
GNU C 中的__attribute__((const)) 和__attribute__((pure)) 有什么区别?
__attribute__((const)) int f() {
/* ... */
return 4;
}
对
__attribute__((pure)) int f() {
/* ... */
return 4;
}
【问题讨论】:
-
This 可能会有所帮助。
标签: c gcc attributes constants gnu