Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这条线:
g++ -I d:\boost -Os -s -o test.exe test.cpp -lshlwapi -lgdi32 -std=c++11 -ftree-vectorize -static`
而且我找不到-s它的用途,我知道大 S 做什么,但小 S 一无所获。
-s
顺便说一句,实际的命令行 gcc 参考在哪里,这个:http ://tigcc.ticalc.org/doc/comopts.html 已有10 年历史。
来自man gcc:
man gcc
-s 从可执行文件中删除所有符号表和重定位信息
它相当于strip命令。
strip