Strip Executable (Windows)

眉间皱痕 提交于 2019-12-12 23:18:47

问题


I've heard that strip is a program that makes an executable smaller.

I've tried to turn it on from my compiler (for Python) but when it comes to run strip I just see "strip is not recognized as a command or as a program" error from the Command Prompt.

So where do I get the executable of strip for Windows?


回答1:


strip is part of GNU's binutils.




回答2:


Unix/Linux style strip will remove symbol info that is used for debugging purposes. AFAIK under Windows a strip utility is specific to the compiler that was used. See here on SO for more info.

A related utility that might be useful is StripReloc, a utility that removes relocation info from executables and as such makes them smaller. Read the instructions though, it's not recommended to run it blindly against every .exe on your system...




回答3:


Strip removes information such as debugging symbols from object files. Doing this makes the file smaller.

If you have it, it would likely be distributed with your C compiler (such as GCC).



来源:https://stackoverflow.com/questions/1540523/strip-executable-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!