Eri*_*tin 5 c static local compiler-optimization
对于像这样的函数
int test(void) {
static int x = 0;
x++;
return 0;
}
Run Code Online (Sandbox Code Playgroud)
C 编译器允许优化吗x?
作为参考,GCC 6.3.0 或 Clang 3.9 都没有优化使用x-O3 的增量。
| 归档时间: |
|
| 查看次数: |
413 次 |
| 最近记录: |