Re: Source code for CPUCount20 Intel utility

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Dorel Sturm" <dodo@xxxxxxxxxxxxxxxxxxx> wrote in message
news:dra2ua$3r1$1@xxxxxxxxxxxxxxxxxxx
> Hi Vladimir,
>
> Thanks for the code suggstion and the link to CPUID utility. This is a
> Microsoft example about how to use CPUID instruction. However this code
> does not have example how to use CPUID:4 to get the number of cores
> (sigle/multiple core processor).
>
> Any ideas how to use CPUID:4 instruction. I guess I need to do something
> special before calling CPUID:4 otherwise I get in EAX all the time 0. But
> what?
>
> Dorel Sturm

The link you wrote is not broken. They just published instead of source code
compiled binary :). If you're familiar with assembler language you can debug
that binary, at .text:004011BC they begun to use cpuid command.

--
Vladimir



.



Relevant Pages

  • Re: Source code for CPUCount20 Intel utility
    ... they promised to fix the link soon... ... >> Hi Vladimir, ... >> Thanks for the code suggstion and the link to CPUID utility. ... This is a Microsoft example about how to use CPUID instruction. ...
    (microsoft.public.win32.programmer.kernel)
  • BTW: IMHO there is rich sample of using CPUID in the web (open source lib. under the MPL)
    ... CarbonSoft cxCpu 4 provides a comprehensive class library allowing you, ... having to worry about different vendor's implementation of the CPUID ... The CPUID instruction takes a single parameter that identifies the execution ... The execution level determines what information is to be returned, ...
    (borland.public.delphi.language.basm)
  • Re: # of Physical processors in a Unix system
    ... It's a fuzzy line between multicore and multiprocessor thanks to things like Hyperthreads and shared caches. ... which tells you how to use the CPUID instruction to determine this. ... CPUID is an unprivileged instruction, but there is a Linux cpuid module that provides device nodes that let you read the output of the CPUID ... I am just starting to look at this on Opteron, but naturally AMD chose to do something completely different as far as CPU identification. ...
    (comp.os.linux.development.apps)
  • Re: Test whether rdmsr instruction is supported.
    ... All modern processors support cpuid. ... in HAL without any speacial tricks like affinity or raising irql. ... Volodymyr, could you provide a symbol which contains this code. ... "...if you want to use the CPUID instruction to check processor ...
    (microsoft.public.development.device.drivers)
  • New Application: CPUID Explorer
    ... I've uploaded a new utility program that shows how to use the CPUID instruction to ... It is now available from my MVP Tips site. ...
    (microsoft.public.vc.mfc)