www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/02/10:03:58

Xref: news2.mv.net comp.os.msdos.djgpp:2361
From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Exe size
Date: 1 Apr 1996 02:54:16 GMT
Organization: The National Capital FreeNet
Lines: 19
Sender: ao950 AT freenet6 DOT carleton DOT ca (Paul Derbyshire)
Message-ID: <4jnggo$k1l@freenet-news.carleton.ca>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 960327171330 DOT 4844I-100000 AT is>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet6.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) writes:
> On Tue, 26 Mar 1996 gelido AT dei DOT unipd DOT it wrote:
> 
>> 	which is the inline GCC options to make the smaller .exe ?
>> I use 'GCC -s -O3' but the output file is 2-3 times bigger than BCC.
>> Is this what I have to pay for 32 bit ?
> 
> Try -O2. 

Definitely. O3 inlines short and frequently used functions. This makes the
code for these be repeated all over the place and bloats your EXE. It's a
compromise between speed and file size.

--
    .*.  "Clouds are not spheres, mountains are not cones, coastlines are not
 -()  <  circles, and bark is not smooth, nor does lightning travel in a
    `*'  straight line."    ,------------------------------------------------
         -- B. Mandelbrot  |  Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca

- Raw text -


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