Lazarus

Free Pascal => General => Topic started by: FlierMate on April 13, 2021, 05:41:22 am

Title: Is there commands to get CPU type?
Post by: FlierMate on April 13, 2021, 05:41:22 am
I just found GetCPUCount, but is there any function to get processor type?
Title: Re: Is there commands to get CPU type?
Post by: trev on April 13, 2021, 05:59:32 am
* 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).
Title: Re: Is there commands to get CPU type?
Post by: marcov on April 13, 2021, 09:38:38 am
Unit cpu has some CPUID wrappers. But the interpretation is your own job :-)
Title: Re: Is there commands to get CPU type?
Post by: zamronypj on April 13, 2021, 05:32:42 pm
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.
Title: Re: Is there commands to get CPU type?
Post by: ASBzone on April 14, 2021, 06:26:23 pm
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
TinyPortal © 2005-2018