Board logo

标题: [其他] 用strip这个工具来减少EXE文件体积真的是666 [打印本页]

作者: codegay    时间: 2017-9-11 16:17     标题: 用strip这个工具来减少EXE文件体积真的是666

我刚刚从这篇文章《 Nim binary size from 160 KB to 150 Bytes 》
https://hookrace.net//blog/nim-binary-size

知道strip这个工具。nim程序编译后比 c 的程序编译出来的可执行文件大。进一步用strip 脱一下之后EXE文件体积明显减小。

bathome.net的 bcn 早已经收录了strip这个工具。如果你愿意装一下bcn 配置好后,直接执行命令bcn gt strip 下载。以后需要下载其它命令工具,也会非常地方便哦。
以我的环境为例:win7 x64 nim0.17.2 x64
所以需要下载64位版的strip
  1. bcn gt strip64
复制代码
脱~
  1. strip64 -s xxx.exe
复制代码
参考:
linux中的strip命令简介------给文件脱衣服 http://blog.csdn.net/stpeace/article/details/47090255
http://batch-cn.qiniudn.com/s/tool/index.html?key=strip
作者: happy886rr    时间: 2017-9-11 19:15

回复 1# codegay
棒,果然不一般。




欢迎光临 批处理之家 (http://bathome.net./) Powered by Discuz! 7.2