Apple是否提供了API来访问这些信息?
ARM有没有可以在asm块中使用的x86 CPUID指令的等价物?
谢谢。
发布于 2011-09-22 12:26:15
Erica Sadun写了许多有用的查询。我会开始检查uidevice扩展代码,看看你是否能在那里找到你想要的。
https://github.com/erica/uidevice-extension
此外,正如Gapton所说,请记住,一些设备查询不会获得App Store的批准,特别是那些未发布的查询,但其中相当一部分是可以使用的。
发布于 2018-08-27 17:15:43
我需要CPU型号信息和指令集。所以我试着尽可能简单地做:
std::string GetCPUModel()
{
// you can compare results with https://www.theiphonewiki.com/wiki/List_of_iPhones
struct utsname systemInfo;
uname(&systemInfo);
std::string version(systemInfo.version);
size_t cpuModelPos = version.find("RELEASE_");
if (cpuModelPos != String::npos)
{
// for example: will return "ARM64_S8000" - for iPhone S6 plus
return version.substr(cpuModelPos + strlen("RELEASE_"));
}
return {};
}https://stackoverflow.com/questions/7509167
复制相似问题