From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Will djgpp optimize recursive function calls? Date: Sat, 16 Nov 1996 12:07:45 -0800 Organization: Three pounds of chaos and a pinch of salt Lines: 25 Message-ID: <328E1F11.5F69@cs.com> References: Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp107.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Calvin French To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Calvin French wrote: > > ??? If so, what optimization flags should I use? I hate to sound > lazy, stupid, or just plain whiny, but data recursion isn't the most fun > I've had. Actually I am close to getting the hand-optimized version > working, but I wonder if the compiler would do a better job anyways, for > instance by using the real stack. Hrmm... Thanks, I have read in some detail the gcc docs on optimization flags. As I understand it, if gcc detects a recursive call, it will NOT inline the function that uses it. It will still optimize the function itself, but will never convert it into inline code. For more information, look in the gcc docs under Invoking GCC | Optimize. -- John M. Aldrich, aka Fighteer I -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>+ W++ N++ o+ K? w(---) O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+ tv+() b+++ DI++ D++ G e(*)>++++ h!() !r !y+() ------END GEEK CODE BLOCK------