From: "Johan Venter" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: gcc-2.95 and binutils-2.9 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Message-ID: Date: Mon, 16 Aug 1999 10:55:12 +1000 NNTP-Posting-Host: 203.40.83.183 X-Trace: newsfeeds.bigpond.com 934800683 203.40.83.183 (Mon, 16 Aug 1999 20:51:23 EST) NNTP-Posting-Date: Mon, 16 Aug 1999 20:51:23 EST Organization: Telstra BigPond Internet Services (http://www.bigpond.com) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote in message news:Pine DOT SUN DOT 3 DOT 91 DOT 990815134023 DOT 1935a-100000 AT is... > > On Sat, 14 Aug 1999, Andris Pavenis wrote: > > > > It seem to take ages to execute something called "collect2". > > > > collect2 is called only to link executatble and it should not take much > > time to execute itself. > > Also, if I am not mistaken, collect2 is only used to link C++ programs. > Andris, is that correct? No, I just checked. It is used to compile C programs as well. Compileing a simple hello world program took 24 seconds with the following command line: gcc test.c -o test.exe I've tried specifying -O0 to try and turn off the optimizations, but it compiles at the same speed. Is there any way I can turn off the optimizations or only have gcc-2.95 use the optimizations that 2.8.1 used? I don't want to have to take so long to compile a project while it's in test stages. Rather have it compiling faster while I'm developing it and adding optimizations later when it is finished. -- Johan Venter ICQ 3643877 surf.to/djgppig