Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: "Tony Kao" , djgpp AT delorie DOT com Date: Wed, 20 May 1998 09:30:48 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: gcc 2.8.1 outputs are much larger than gcc 2.7.2 ... why ?? In-reply-to: <6jr414$qgs$1@news.itri.org.tw> Precedence: bulk "Tony Kao" wrote: > I just downloaded the gcc 2.8.1 and tried to compile the famous "Hello" > program. the following is the program: > > #include > > main() > { > cout << "Hello, DJGPP !!\n"; > } > > with the compile option: gcc -o hello.exe hello.cpp -lstdcx > I found the execution file size is 386560 bytes, which is much bigger than > gcc 2.7.2 outputs. For gcc 2.7.2 the execution file size for the same > program is 187675 bytes. You MUST strip the debug information. Add -s to the gcc command line or run strip hello.exe. GCC 2.8.x generates a huge amount of debug information, in fact I'm thinking about going back to 2.7.2 because the memory needed to debug my program is huge. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://set-soft.home.ml.org/ or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013