Lazarus
Free Pascal => General => Topic started by: FlierMate on April 13, 2021, 05:41:22 am
-
I just found GetCPUCount, but is there any function to get processor type?
-
* Windows + Linux: see Github for the TSMBIOS (https://github.com/RRUZ/tsmbios/) library.
* macOS: see the Wiki Accessing macOS System Information (https://wiki.lazarus.freepascal.org/Accessing_macOS_System_Information)
* FreeBSD: see the Wiki Accessing FreeBSD System Information (https://wiki.lazarus.freepascal.org/Accessing_FreeBSD_System_Information).
-
Unit cpu has some CPUID wrappers. But the interpretation is your own job :-)
-
I wrote this a while ago
https://github.com/zamronypj/cpuid
not as complete TSMBIOS library but if you only care about Intel processor, this should suffice.
-
I just found GetCPUCount, but is there any function to get processor type?
Here's the unit I use: https://forum.lazarus.freepascal.org/index.php?topic=46281.0