From: Nate Eldredge Newsgroups: comp.os.msdos.djgpp Subject: Re: Size of my C/C++ Program Date: 04 Jun 2001 12:29:31 -0700 Organization: MindSpring Enterprises Lines: 18 Sender: nate AT mercury DOT bitbucket Message-ID: <831yp0dox0.fsf@mercury.bitbucket> References: <9fe6ks$5ph$04$1 AT news DOT t-online DOT com> NNTP-Posting-Host: a5.f7.d2.5e Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Server-Date: 4 Jun 2001 19:29:31 GMT User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Wolfgang Merkel" writes: > Hello, > > maybe OT, but except for using "-O3" with djgpp is > there some other easy ways to reduce size of my to > ".exe" compiled c-source ? (Djgpp latest version) Do read the FAQ, as suggested. However, I'd like to point out that for small size, you should use -O2 instead of -O3. (-O3 enables function inlining, which generally makes code bigger (and sometimes slower)). You could also use -Os, which will try to optimize for size at the expense of speed. -- Nate Eldredge neldredge AT hmc DOT edu