Date: Sun, 29 Apr 2001 10:14:37 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: gcc for djgpp vs borland c compiler In-Reply-To: <9cg5c3$12u0$1@node17.cwnet.frontiernet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 29 Apr 2001, Alexei A. Frounze wrote: > "Danny" wrote in message > news:9cg46n$kk5$1 AT sunlight DOT pku DOT edu DOT cn... > > Hi, THere. > > > > I have got both gcc for djgpp and borland C compiler (bcc32). I compared > > them on a simple 'hello world' C code. I found gcc made a EXE with size of > > 107,516bytes, while bcc32 generated a EXE with size of 52,736bytes. > > > > How come they are so different? > > 1. turn on optimization > 2. get a rid of debug info > > but better: > 0. go read DJGPP FAQ Yeah, section 8.14, to be exact.