This topic is now archived and is closed to further replies.

how to get CPU caps

This topic is 5585 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hrm this may be along the same lines
so hopefully im not hijacking a thread-
but is there another way to get processor
specifications besides digging through the
registry and/or decoding cryptic cpu signatures?

would be nice if there was a GetCPUSpeed() function

;another space monkey;
[ Forced Evolution Studios ]


Share this post

Link to post
Share on other sites
There was some code to do this sort of thing that was code of the day on flipcode a while back. It uses asm but should be fairly easy to use. Not sure if this is the kind of thing you want. Anyway here is the link

EDIT - If you look down in the comments I think there is something about detecting the speed

[edited by - Grambo on August 27, 2002 6:59:27 PM]

Share this post

Link to post
Share on other sites
Original post by original vesoljc
tornado: vendor name, cpu family, version, revision, speed, mmx, sse, 3dnow, etc...

Abnormal behavior of abnormal brain makes me normal...

OK, All of this info you can get with the CPUID instruction.
For the CPU speed, you can use the RDTCS instruction.
Basically: Goto Intel and AMD websites and find the specs for the CPUID instruction.
In your application, use CPUID to find the vendor of the CPU (Which works the same way for both vendors) and from that point use the CPUID instruction reference for each vendor to get more info about the CPU.
Like said, goto sites like, etc. - you'll probably find neat stuff over there
If you're looking for anything specific and really can't find it, I might be able to help you (Wrote a library that gets all of the info you specified a couple of months ago ) - So post here, or email me.

Btw: Look over at Intel's developers section, they have an article that explains how to use the RDTSC instruction to get the speed of the CPU.

[edit] Dohh forgot to mention: CPUID and RDTSC are assembly instructions, so you'll have to use some inlined assembly to get things done [/edit]

Goblineye Entertainment
The road to success is always under construction

[edited by - Tornado on August 27, 2002 7:57:46 PM]

Share this post

Link to post
Share on other sites