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

From: Tom St Denis <stdenis AT compmore DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: what does the -s switch do?
Date: Fri, 09 Feb 2001 01:09:10 GMT
Organization: Deja.com
Lines: 18
Message-ID: <95vfvh$pjt$1@nnrp1.deja.com>
References: <5NDg6.576$xT3 DOT 24905 AT news1 DOT oke DOT nextra DOT no>
NNTP-Posting-Host: 24.112.8.23
X-Article-Creation-Date: Fri Feb 09 01:09:10 2001 GMT
X-Http-User-Agent: Mozilla/5.0 (Windows 98; U) Opera 5.02 [en]
X-Http-Proxy: 1.1 x52.deja.com:80 (Squid/1.1.22) for client 24.112.8.23
X-MyDeja-Info: XMYDJUIDtomstdenis
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?

This strips all symbols out of the program.  So if you want to use debuggin
you can't use -s i.e

"gcc -g3 1.c -o 1.exe -s" is a bad idea :-)

Tom


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

- Raw text -


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