Date: Tue, 21 Jan 1997 09:45:44 +0200 (IST) From: Eli Zaretskii To: Rob Vasquez cc: djgpp AT delorie DOT com Subject: Re: DJGPP 1 -> DJGPP 2 -> slower program speed? In-Reply-To: <32E41D68.886@worldnet.att.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 20 Jan 1997, Rob Vasquez wrote: > > Who can help me make my prog faster (as fast as in DJGPP 1)? > > From the djgpp FAQ: > ------------------------------------------------------------------------In general, GCC 2.7.2 which comes with DJGPP v2.0 generates tighter, > faster code. But it sometimes produces buggy code when "strength > reduction" optimizations are enabled. So DJGPP by default disables this > kind of optimization, which might sometimes yield slower code. If you > need extra speed, first debug your program with default optimization > options, and then recompile with -fstrength-reduce switch to see if that > makes any difference. The latest FAQ release (faq210b.zip) has expanded and enhanced this section, so it includes much more detailed advice now.