Thread: how to get information from cpuid using c code

  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    41

    how to get information from cpuid using c code

    I have to get some information about the CPU. I think that I have to use cpuid because there is no way to get every information using windows API.
    Anyway I have never used assembly code. Could someone tell me how to use cpuid and get the information, so that I can use the cpuid specification to work out what I need? Thanks!

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Here's something that uses the cpuid instruction that I wrote a while ago when I was trying to learn a bit about assembly. It's in C++ though, so you'll have to carve out the pieces that you need.

  3. #3
    Registered User
    Join Date
    May 2007
    Posts
    41
    Thanks a lot!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 04:28 AM
  2. Seems like correct code, but results are not right...
    By OmniMirror in forum C Programming
    Replies: 4
    Last Post: 02-13-2003, 01:33 PM
  3. Special Allegro Information
    By TechWins in forum Game Programming
    Replies: 12
    Last Post: 08-20-2002, 11:35 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Replies: 4
    Last Post: 01-16-2002, 12:04 AM