Linux ARM cpuid / cpubrand C ++ [英] Linux ARM cpuid/cpubrand C++

查看:1263
本文介绍了Linux ARM cpuid / cpubrand C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人知道获取CPUID和品牌字符串的方法,甚至可能是功能,类似于Linux ARM中NEON的MMX / SSE等检测?



似乎缺少任何形式的__cpuid和cpuid.h也不存在 - 至少在我的发行版上(OpenSuSE12.3)



它'对我的项目来说并不重要,但仍然很有趣。

is anyone aware about a method to get CPUID and brand string, as well as maybe even features, similar to MMX/SSE etc. detection for NEON in Linux ARM?

It seems to lack any form of __cpuid and cpuid.h ain''t existing also - at least on my distro (OpenSuSE12.3)

It''s not vital for my project, but still interesting.

推荐答案

https://www.google.com/search?q=get+cpuid+linux [ ^ ]。


你没有说你正在处理哪个ARM,但是Raspberry Pi(和其他人)用命令行告诉你CPU ID和其他信息

You didn''t say which ARM you are dealing with, but the Raspberry Pi (and others) tell you the CPU ID and other info with command line
cat /proc/cpuinfo



您可以在C / C ++中使用system()调用。


which you can use from C/C++ with a system() call.


Linux ARM ,而不是x86。 ARM没有答案。我很高兴它会如此简单:)
Linux ARM, not x86. There are no answers for ARM. I''d be happy it would have been so easy :)


这篇关于Linux ARM cpuid / cpubrand C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆