如何縮小.o的size?
請教各位大大,
.c檔經gcc 編譯後會產生.o檔,
其中.o檔包含下述資料
Symbol Names
Compiled code
Constant data, eg. strings
Imports - which symbols the compiled code references (gets fixed up by linker)
Exports - which symbols the object file makes available to OTHER object files
如果我想要縮小.o檔的size,那我是要調整.c檔中的哪部分呢? 若是拿掉沒有用到的宣告
(string,int,array..等)會有幫助嗎? 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.36.16.199
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1484811716.A.877.html
推
01/19 16:21, , 1F
01/19 16:21, 1F
→
01/19 20:17, , 2F
01/19 20:17, 2F
推
01/20 08:39, , 3F
01/20 08:39, 3F
推
01/20 12:43, , 4F
01/20 12:43, 4F
→
01/21 02:21, , 5F
01/21 02:21, 5F
→
01/21 02:21, , 6F
01/21 02:21, 6F
推
01/21 16:34, , 7F
01/21 16:34, 7F