www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/26/23:22:30

From: "John M. Aldrich" <fighteer AT cs DOT com>
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: <ws6jCCAYMEFzEwZ0 AT jenkinsdavid DOT demon DOT co DOT uk> <jXNX8DAHfPFzEwJ0 AT jenkinsdavid DOT demon DOT co DOT uk>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp202.cs.com
Mime-Version: 1.0
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.           |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019