X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <3C711405.C395A298@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: TurboC vs DJGPP in efficiency. References: <20020218122544 DOT 16460 DOT qmail AT web20805 DOT mail DOT yahoo DOT com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Lines: 31 Date: Mon, 18 Feb 2002 14:55:07 GMT NNTP-Posting-Host: 12.90.181.97 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1014044107 12.90.181.97 (Mon, 18 Feb 2002 14:55:07 GMT) NNTP-Posting-Date: Mon, 18 Feb 2002 14:55:07 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com cesar tejeda wrote: > > I know a similar question is already in the FAQ, > but, I have a little 386 and I notice a BIGGGG > diference in compilation time for TurboC vs DJGPP. > > TurboC needs a lot less compile time for the same > file(10 times less approx.) , and it is also a > FASSSTER environment when you compare it to RHIDE. > It also uses a lot less memory. > > ¿Why? ¿So high is the price we must pay for 32-bit > programming? If you look at the actual executable code generated GCC is very efficient. However the volume of run-time code inserted is quite high, mainly to whip the lame DOS/Windoze interface into reasonably close compliance with POSIX standards. Do an "objdump -dS" on your .o object modules, and you will be surprised how taut they are, especially if compiled with -O2. -gstabs+ is also needed for suitable friendly interface with gdb and objdump. Then compare the result with the code output by TC on the same sourcee. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net) Available for consulting/temporary embedded and systems. (Remove "XXXX" from reply address. yahoo works unmodified) mailto:uce AT ftc DOT gov (for spambots to harvest)