Author: Oliver Roese
Date: 10:16:07 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? > >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 > You are right. Since current hardware is very complicated, with several internal buffers, quirks etc., a thourough understanding is needed, to understand the cpu-behavior completely, even in simple cases. You may have a look at http://www.agner.org/assem, it is first class. It could answer most of your questions. If you are completely new to assembler, there is a very extensive tutorial online http://webster.cs.ucr.edu/Page_asm/ArtOfAsm.html Or look at the documentation of nasm, it contains a brief instruction reference http://www.web-sites.co.uk/nasm/docs/ Oliver Roese
This page took 0.01 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.