delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/08/20:36:28

From: dcasale AT my-deja DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: what does the -s switch do?
Date: Fri, 09 Feb 2001 01:20:24 GMT
Organization: Deja.com
Lines: 21
Message-ID: <95vgki$q66$1@nnrp1.deja.com>
References: <5NDg6.576$xT3 DOT 24905 AT news1 DOT oke DOT nextra DOT no>
NNTP-Posting-Host: 199.249.234.30
X-Article-Creation-Date: Fri Feb 09 01:20:24 2001 GMT
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
X-Http-Proxy: 1.1 x73.deja.com:80 (Squid/1.1.22) for client 199.249.234.30
X-MyDeja-Info: XMYDJUIDdcasale
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <5NDg6.576$xT3 DOT 24905 AT news1 DOT oke DOT nextra DOT no>,
  "Terje" <pingping AT start DOT no> wrote:
> Hello, when i compile my programs, I usually include the -s switch in
> the command line like gcc 1.c -o 1.exe -s, I know the executable gets
> smaller when doing this, but is there any times when I shouldn't use
> this?

Take a look at the info for gcc.  Under "Invoking GCC" and "Link
Options," the -s option is described.  It causes gcc to strip out the
symbol table from the executable, making your program a lot more
difficult to debug.  Don't use this option if you are debugging.

To run info, type "info" and search for the GCC link.  Alternatively,
type "info gcc" and it'll take you there.

Damon Casale, damon AT WRONG DOT redshift DOT com (remove the obvious)
Is there a -freebeer option too?


Sent via Deja.com
http://www.deja.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019