本文介绍了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.

推荐答案


cat /proc/cpuinfo



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


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



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

05-26 01:46