Date: Mon, 16 Dec 1996 18:53:49 +0200 (IST) From: Eli Zaretskii To: "John M. Aldrich" cc: Jurgen Schwietering , djgpp AT delorie DOT com Subject: Re: gcc compiles so slow? In-Reply-To: <32B22D13.5E7D@cs.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 13 Dec 1996, John M. Aldrich wrote: > > trapped on djgpp. After installing i did compile the samples. Hello at > > first. It took about 8 seconds to compile and link, the same programme > > takes about 0.5 secs under BC3.1. Am I doing something wrong, or is this > > normal? Equipment: Pentium 100/8MB, DOS 6.22, SCSI2, Smartdrive, no other > > TSR. This is too slow for a Pentium. Jurgen, I'd estimate you should go down to about 4 seconds on a well-tuned system. Be sure to read sections 3.9, 7.1 and 7.2 of the DJGPP FAQ list (available as v2/faq202b.zip from the same place you get DJGPP) and set your system using the advice there. > > Can I use precompiled headers? No. GCC doesn't support this. > > Can I use another compiler which is GO32 compatible? There is no other compiler like that. > HOWEVER, once you get past the initial cost of loading the tools, DJGPP > is faster than any other 32-bit compiler with the same code. Try > comparing the compilation speeds of a fifty-thousand line project > between the two compilers, and you'll see the difference. DJGPP compiles at about half the speed of BC on the same machine, unless the source file is *real* small. If you don't get this performance, your system needs tuning.