参考:
https://www.cnblogs.com/dylancao/p/10668549.html
https://kb.kutu66.com/function/post_6611676
gcc -Wl,--gc-sections,--print-gc-sections main.o add.o -o main
可以用
objdump -D main | less
来查看最终的可执行文件中是否还有未使用的符号。
参考:
https://www.cnblogs.com/dylancao/p/10668549.html
https://kb.kutu66.com/function/post_6611676
gcc -Wl,--gc-sections,--print-gc-sections main.o add.o -o main
可以用
objdump -D main | less
来查看最终的可执行文件中是否还有未使用的符号。
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo