-   Linux - Software (
-   -   disable debug mode in gcc (

arunachalam 09-09-2007 12:56 PM

disable debug mode in gcc
hello all,

how to generate an exe in release mode for a C Program, I am using gcc for compilation.

Thanks in advance,
Arunachalam. 09-09-2007 01:20 PM

First, don't use the -g switch when you compile. Avoiding that switch will keep the extra debug information from appearing in the executable file.

Second, you can strip even externally defined globals from the executable file by using the strip command on the executable file after compilation. For more details, do this at the command line:


man strip
Hope this helps.

All times are GMT -5. The time now is 06:41 AM.