OSX 获取CPU信息

可以使用sysctl 命令: [code] sysctl hw [/code] 会列出一些和CPU内存配置相关的参数,其中还有此CPU的byteorder, 4321 为bigendian, 1234为little endian.