From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: what does the -s switch do? Date: 9 Feb 2001 12:35:48 GMT Organization: Aachen University of Technology (RWTH) Lines: 21 Message-ID: <960o74$f5l$1@nets3.rz.RWTH-Aachen.DE> References: <5NDg6.576$xT3 DOT 24905 AT news1 DOT oke DOT nextra DOT no> <95vfvh$pjt$1 AT nnrp1 DOT deja DOT com> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 981722148 15541 137.226.32.75 (9 Feb 2001 12:35:48 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 9 Feb 2001 12:35:48 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Rudolf Polzer wrote: > Tom St Denis schrieb Folgendes: >> "gcc -g3 1.c -o 1.exe -s" is a bad idea :-) > I forgot to ask, > is "gcc -O3 -ggdb3 -o X.EXE" and then "strip -s X.EXE" equivalent to > leaving out -ggdb3? No. Leaving out -g{whatever} is equivalent to gcc -g{whatever} -o x.exe strip -g x.exe Strip -g (the corresponding long option is --strip-debug) removes exactly that part of the debugging information that gcc's -g family of options add, compared to a default compilation. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.