From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: register int variable Is there any point??? Date: Wed, 26 Feb 1997 22:15:23 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 16 Message-ID: <3315267B.3B54@cs.com> References: Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp202.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp David Jenkins wrote: > > Is there any point in using a register int in a for loop??? > Or am I using a timing method which is incorrect?? As I said in my reply, gcc usually optimizes such variables into registers anyway, so you won't gain anything by specifying it explicitly. gcc is VERY smart when it comes to optimizing. :) -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | "Starting flamewars since 1993" | http://www.cs.com/fighteer | | *** NOTICE *** This .signature is generated randomly. | | If you don't like it, sue my computer. | ---------------------------------------------------------------------