delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/24/02:30:17

Xref: news2.mv.net comp.os.msdos.djgpp:6342
From: lehmann AT mathematik DOT th-darmstadt DOT de (Alexander Lehmann)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Size optimizations?
Date: 23 Jul 1996 14:40:20 GMT
Organization: Technische Hochschule Darmstadt
Lines: 30
Message-ID: <4t2o8k$154m@rs18.hrz.th-darmstadt.de>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 960721111035 DOT 5526S-100000 AT is> <4t295j$12i AT snail DOT stack DOT urc DOT tue DOT nl>
NNTP-Posting-Host: fb0432.mathematik.th-darmstadt.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Jan Oonk (jan AT stack DOT urc DOT tue DOT nl) wrote:
: Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:

: : On Sun, 21 Jul 1996, Josh Stevens wrote:

: : > Sorry if this is in the FAQ, but *I* sure couldn't find it.  Are there
: : > any optimizations you guys can suggest that would reduce the size of a
: : > C++ .exe file?

: : You probably have an old FAQ.  The latest version 2.01 (v2/faq201b.zip) 
: : has an entire section 8.15 devoted to this.

: : And remember to link with -s, otherwise your executable includes all the 
: : symbols.

: And if I remember correctly dont use -O2 or -O3 or the compiler will make
: all funcitons calls inline!

-O2 turns on basically all `normal' optimizations, except a few like
inlining. -O3 turns on inlining and will usually make the code much
larger.


bye, Alexander

--
Alexander Lehmann,                                  |  "On the Internet,
alex AT hal DOT rhein-main DOT de  (plain, MIME, NeXT)         |   nobody knows
lehmann AT mathematik DOT th-darmstadt DOT de (plain)          |   you're a dog."
!!CHANGED!! <URL:http://www.mathematik.th-darmstadt.de/~lehmann/>

- Raw text -


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