This post is continuation of “Mac OSX CPU Information. Terminal and Programmatically”. Finally I got device with Apple Silicon processor. Virtual so far. I want to buy physical one when both happen it will be available in store and enough money in my pocket or account or whatever. I hope it happens soon.
|
# sysctl machdep.cpu machdep.cpu.cores_per_package: 8 machdep.cpu.core_count: 8 machdep.cpu.logical_per_package: 8 machdep.cpu.thread_count: 8 machdep.cpu.brand_string: Apple processor |
The result of cpubrand_string, the source code is there.
|
# ./cpubrand_string CPU Brand String: Apple processor |
By the way the code works similar when it was compiled on Apple Silicon or Intel processors.