Author: Flemming Rodler
Date: 10:11:04 05/26/00
Go up one level in this thread
On May 26, 2000 at 10:25:39, blass uri wrote: >I understand that searching for the value of a varaible can take more time if >the variable is not in the CPU(not register variable). > >I have some questions > >1)Is searching for the value of a register variable takes the same time in case >of more variables when there are more variables in the CPU. > >2)Is searching for the value of a variable takes more time in case of more >variables if the variable is not in the CPU. > >3)How many register variables can be saved in the registers of the CPU >4)How much faster is using register variables relative to using not register >variables? Using the register specifier in C does nothing in my experience since todays compilers are extremely good at figuring out by themselves which variables should be put into registers. > >My logic say that searching for the value of the variable should take more time >in every case when there are more variables because searching for a word in a >big dictionary takes more time than searching for a word in a small dictionary >but I do not know if computers search in a "dictionary" for variables or use >another method. > >I understand that the reply to questions 3 and 4 may be dependent on the >hardware > >Uri
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.