开发者

Strip Executable (Windows)

开发者 https://www.devze.com 2022-12-08 05:57 出处:网络
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 no

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?


strip is part of GNU's binutils.


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...


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号