What is the difference between “gcc -s” and a “strip” command?
I wonder what is the difference between these two: gcc -s : Remove all symbol table and relocation information from the executable. strip : Discard symbols from object files. Do they have the same meaning? Which one do you use to: reduce the size of executable? speed up its running? Cascabel gcc being a compiler/linker, its -s option is something done while linking . It's also not configurable - it has a set of information which it removes, no more no less. strip is something which can be run on an object file which is already compiled. It also has a variety of command-line options which you