kettlepot
kettlepot

Reputation: 11011

Strip Executable (Windows)

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?

Upvotes: 3

Views: 21677

Answers (3)

silentbicycle
silentbicycle

Reputation: 1162

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

Upvotes: 3

fvu
fvu

Reputation: 32973

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

Upvotes: 3

R Samuel Klatchko
R Samuel Klatchko

Reputation: 76611

strip is part of GNU's binutils.

Upvotes: 4

Related Questions