| delorie.com/archives/browse.cgi | search |
| From: | eplmst AT lu DOT erisoft DOT se (Martin Stromberg) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Why are my c++ .exe's so large |
| Date: | 22 Oct 1999 12:39:00 GMT |
| Organization: | Ericsson Erisoft AB, Sweden |
| Lines: | 20 |
| Message-ID: | <7uplt4$1pc$3@antares.lu.erisoft.se> |
| References: | <380fd475 DOT 6115722 AT news3 DOT newscene DOT com> <38103DF7 DOT 7BF3176D AT ciam DOT ru> |
| NNTP-Posting-Host: | propus-144.lu.erisoft.se |
| X-Newsreader: | TIN [version 1.2 PL2] |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Yury Fedorchenko (y_fedor AT ciam DOT ru) wrote:
: Katy wrote:
: > For example a simple "Hello World" exe, is ~ 268,000 KB.
: > I use the following commands to compile the hello.cpp
: > gpp -c -o hello.o hello.cpp
: > gpp -o hello.exe hello.o
: It's easy : use -s options !!!
And don't forget the use optimisation too ("-O2"), which will make a
lot of difference compared with _no_ optimisation.
Lastly read the documentation ("info gcc") and the FAQ ("info faq").
U2, Boy,
MartinS
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |