有人用CC='gcc -s'编译系统的吗?
听说strip会破坏库文件。CFLAGS加“-s”后,系统还能正常工作吗?现在有人有这个参数吗? 没用过,有谁吃螃蟹先 :arrow: 在我所保存的以前用gentoo时的make.conf里是有export CC='gcc -s'的,不过时间久了,记不清当初是否使用了。所以来找别人确认一下 :mrgreen: man strip-s
--strip-all
Remove all symbols.
-g
-S
-d
--strip-debug
Remove debugging symbols only.
--strip-unneeded
Remove all symbols that are not needed for relocation processing.
man ld
-s
--strip-all
Omit all symbol information from the output file.
-S
--strip-debug
Omit debugger symbol information (but notallsymbols)fromthe
output file.
http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#Link-Options
-s
Remove all symbol table and relocation information from the executable.
gcc -s是否相当于strip --strip-all了?或者是ld --strip-all?
gcc -s、strip --strip-all、ld --strip-all之间有何区别阿?
如果要移除符号的话,是设置CFLAGS好呢还是LDFLAGS好呢? 支持楼主测试。 不用gentoo了,没法测。不过应该没问题,滔滔试试吧,会让程序变小的,加载速度也会有提升 是否指-Os,是的话我试过,base系统可以通过编译,但是会在多媒体方面有问题(大概是半年前测试,现在就不清楚了),性能的话,说真的,比较慢,程序空间是小了一点,个人感觉跟O2有8%左右的差距,其实用acovea做一下benchmark也可以得到相同的结果。 不是-Os
页:
[1]