Announcement

Collapse
No announcement yet.

cpuid+rdtsc

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • cpuid+rdtsc

    How can I learn about the number of cycles a processor instruction takes to execute?
    Nor AMD not Intel gives that kind of information and RDTSC is not a precise any more.
    Any hint will be welcome?

  • #2
    Originally posted by DrLecter View Post
    How can I learn about the number of cycles a processor instruction takes to execute?
    Nor AMD not Intel gives that kind of information and RDTSC is not a precise any more.
    Any hint will be welcome?
    Well, take readings of the TSC before and after the
    instruction you want to measure. Make sure you disable
    all IRQs and run this under a single-task OS like DOS.
    Since DOS does not know of SMP and SpeedStep, the
    TSC should be very reliable, and noone will reschedule
    your app.
    Last edited by mlau; 10 October 2007, 09:24 AM.

    Comment

    Working...
    X