(cpuid; compiled Nov 28 2009 at 13:24:40; version 0.01)
(getting cpu information)
(cpuid calls up to 10 (0xa (ah)) supported)
(extended functions up to 0x80000008 (80000008h) supported)
(warning: clock frequency can be a little inaccurate)
(done)
General information:
Manufacturer: Intel
Vendor string: GenuineIntel
Brand string: Genuine Intel(R) CPU T2050 @ 1.60GHz
Model information:
Stepping: 8
Model: 14
Family: 686
CPU information:
Cache: L1: 0 KiB L2: 0 KiB L3: 0 KiB
Frequency: 646 MHz
For some reason on my own CPU I get 0, which is bad because if I figure out how to fix it it might flip everything and then the code will only run on my computer :(
Edit: OK, good :)
Damn, cpuid is getting kinda boring now. I wonder if you can do the same for the hard disk, RAM, video card, etc...
Hooray! It works alot better! I just did a google search; the E7300 has 3 MIB of L2 cache according to intel. 3072 KiB == 3 MiB! Yay :)
The frequency looks fairly accurate too!
Thanks :)
Now I wonder if we can get those AMD guys back...
I decided to get rid of the little messages; so if any text other than the main output shows up; it means there's an error.
For the record; I do plan to write a GUI eventually, but I hate writing them. I find it boring and usually pointless -- all they do is waste disk space and, if you run them, memory -- but most people prefer to look at a GUI and I feel like I need to write one as I've only ever written a GUI once; and that was with pure windows API...
I made a windows binary with mingw-gcc; it's really big for some reason (414KiB!), I guess because I compiled it with mingw on Wine. I've heard mingw makes large executables.
I'm going to find a free server, so I can automatically rebuild the program every day and upload the new version. Then I can do this for every program I write; and take over the world spread my boring little programs to the masses.