And as a second question, how can I measure the speed of CPU??
Thanks for any help, example, advice or web addr...

Even for good google search keys except: cpu,type,speed:))
I wonder if intel manual includes AMD specific information. But as I learnt, some AMD processors supports CPUID instruction.slacker wrote: look at cpuid in intel manual
from the above link:Tim Robinson wrote: Later 486 chips do support CPUID, so check the ID bit in EFLAGS (was it EFLAGS? or was it some other register? -- check in Intel manual).
Checking for CPUID support
This is quite easy. Try to change the value of CPUID bit (bit 21) in EFLAGS. If the bit can be toggled, CPUID is supported and shall be used for precise identification. On Cyrix chips the bit cannot be toggled if not explicitly allowed - please use this link ....(not ready yet)
Is there a common-loop-pattern? I may use RDTSC but I dont want the procedure to be pentium specific..Pype.Clicker wrote: a counting loop that consumes a well-known amount of CPU cycles.
Is it possible to calculate the total cycle to execute this loop once? I think the total cycle is not the sum of each instructions execute cycles, due to the pipeline. Arent I right?For instance, you have IRQ0@1KHz, and some code looking like
here:
inc [counter]
cmp [done],1
jne here
cpu_speed = [counter] * $x
using $x cpu cycles for each loop.