![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| strip command | Saurabh78 | UNIX for Advanced & Expert Users | 1 | 04-15-2008 06:15 AM |
| Need to strip few letters | achararun | Shell Programming and Scripting | 5 | 03-11-2008 05:08 PM |
| Need to strip a string | x96riley3 | Shell Programming and Scripting | 6 | 01-27-2007 05:21 AM |
| Strip all non-alphanumerics | braindrain | Shell Programming and Scripting | 3 | 09-17-2006 11:21 AM |
| How to strip strins | kamathg | Shell Programming and Scripting | 14 | 03-23-2006 10:04 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Strip command
I am new in Unix. I go through the man strip. But did not understand that, why when we have -G (debug and release ) option in the compiler, than using strip command to strip the debug information from the objects. i want to binary for teh production i will compile it without debug option. What the exact scenario where strip command is useful.
Thanks in advanced. |
| Forum Sponsor | ||
|
|
|
|||
|
using strip to remove debugging information from a production binary or creating a production binary without symbol table information / debugging information is highly not recommended
what if the binary crashes in the production ? With the debugging information / symbol table information, it would be very helpful for debugging. |
|
|||
|
no they won't be the same
the answer is in your question .. stripped version - will not have debugging symbols, symbol table unstripped version - will have all the necessary information to debug on a core or to debug a running process stripped version - would be helpful ( not always and it is subjective ) when binary needs to be transferred to another host for execution, run test for batch builds something of that kind |