且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

“机器硬件"与“机器硬件"之间的区别在于:和“硬件平台"

更新时间:2022-03-13 09:53:28

就您所知,您正在64位处理器上运行32位操作系统.代码与386兼容.

In your case what it tells you is, you're running a 32-bit operating system on a 64-bit processor. Code is compatible with a 386.

它们是:

  • 机器硬件名称(有时称为硬件类或硬件类型).
  • 硬件平台名称(有时称为硬件实现)

第一个关于检测到的CPU的信息.关于uname程序编译到的目标体系结构的第二篇文章.在某些CPU上,它们默认为未知".内核应提供此信息,但是如果没有可用的内容,则默认为硬编码字符串.

The first one says something about the CPU that was detected. The second one about target architecture the uname program was compiled to. On some CPU's they default to 'unknown'. The kernel should provide this information, but if there is nothing available it defaults to hard coded strings.

就我而言:

$ uname -a

$ uname -a

Linux godiva 2.6.30-amd64 #1 SMP Tue Oct 27 09:12:19 UTC 2009 x86_64 GNU/Linux

$ uname --machine

$ uname --machine

x86_64

$ uname-硬件平台

$ uname --hardware-platform

unknown