With the upcoming Apple Silicon hardware, some apps may want to determine whether the CPU is an Intel or Apple one.
Which APIs and system calls can provide that information?
As @MarkSetchell points out, sysctl -a can provide some information. For the DTK (macOS 11b3) it returns:
machdep.cpu.brand_string: Apple processor
OTOH, Apple's System Profiler.app shows:
Processor Name: Apple A12Z Bionic
I like to have a similar result, i.e. rather "Apple A12Z Bionic" than "Apple processor".
A quick search for "Apple A12Z Bionic" on the system volume shows that it appears somewhere in the "dyld_shared_cache_arm64e", but not inside System Profiler.app, which suggests that this string is delivered by a framework function rather than being hard-coded in the Profiler app. Therefore, I hope to find the system call that provides this more descriptive name.
