delorie.com/archives/browse.cgi | search |
From: | "Johan Venter" <jventer AT writeme DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <380fd475 DOT 6115722 AT news3 DOT newscene DOT com> |
Subject: | Re: Why are my c++ .exe's so large |
Lines: | 26 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
Message-ID: | <_KYP3.1337$we.1923@newsfeeds.bigpond.com> |
Date: | Fri, 22 Oct 1999 22:25:11 +1000 |
NNTP-Posting-Host: | 139.134.161.180 |
X-Trace: | newsfeeds.bigpond.com 940595258 139.134.161.180 (Fri, 22 Oct 1999 22:27:38 EST) |
NNTP-Posting-Date: | Fri, 22 Oct 1999 22:27:38 EST |
Organization: | Telstra BigPond Internet Services (http://www.bigpond.com) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Katy <kcdixon AT hotbot DOT com> wrote in message news:380fd475 DOT 6115722 AT news3 DOT newscene DOT com... > For example a simple "Hello World" exe, is ~ 268,000 KB. Um, I think you mean 268,000 bytes :-) > I use the following commands to compile the hello.cpp > gpp -c -o hello.o hello.cpp > gpp -o hello.exe hello.o > > How can I make my exe's smaller, is there a switch that I can use to > do this. Yes, use the -s option. This will strip all the debugging information from the executable. If you start developing something however, always compile with -g and no -s to make as much debug info as possible so you can debug it. Use -s for final exe. -- Johan Venter ICQ 3643877 - jventer AT writeme DOT com The TPU DJGPP Interest Group - http://surf.to/djgppig The RSXNTDJ 1.5 HOWTO - http://surf.to/rsxntdj
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |