Mail Archives: djgpp/1996/07/24/02:30:17
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 -