Does anyone know how to get information on the processor without using __cpuid or asm?
This is a discussion on Get processor info within the C++ Programming forums, part of the General Programming Boards category; Does anyone know how to get information on the processor without using __cpuid or asm?...
Does anyone know how to get information on the processor without using __cpuid or asm?
I don't see why people think Chuck Norris is so awesome. If he was really as great as they say, he would be over here slamming my head into the keybsk;lah;flksalfksdnlcslcnsldk;acklsd;glfbaskfl
/* When I wrote this, only God and I understood what I was doing... Now, God only knows */
cat /proc/cpuinfo
And for windows, you can read the registry at HKLM\Hardware\Description\System\...
Or use WMI.
gg
what information are you lookign for? there are several API command sin windows to return infoz aboutthe hardware.
Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.
This is on windows.
I don't want to read reg (it's unreliable).
And these APIs are never in-depth enough.
I don't see why people think Chuck Norris is so awesome. If he was really as great as they say, he would be over here slamming my head into the keybsk;lah;flksalfksdnlcslcnsldk;acklsd;glfbaskfl
/* When I wrote this, only God and I understood what I was doing... Now, God only knows */
I'll repeat abachler's question: what information are you interested in?
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
never mind, I figured out how to get inline asm to access c++ vars. thanks anyway
I don't see why people think Chuck Norris is so awesome. If he was really as great as they say, he would be over here slamming my head into the keybsk;lah;flksalfksdnlcslcnsldk;acklsd;glfbaskfl
/* When I wrote this, only God and I understood what I was doing... Now, God only knows */
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
I was looking for cpuid information (eas: 0)
So basicly, I now have a function that sets a string defining the processor name
I don't see why people think Chuck Norris is so awesome. If he was really as great as they say, he would be over here slamming my head into the keybsk;lah;flksalfksdnlcslcnsldk;acklsd;glfbaskfl
/* When I wrote this, only God and I understood what I was doing... Now, God only knows */