uname -m
出現i386/i486/i586/i686就是32bit
出現x86_64就是64bit
2. 確認CPU
grep flags /proc/cpuinfo
有出現lm就是64bit
nelsonchung@gps1004:~/myandroid9.1/hardware/libhardware_legacy/gps$ grep flags /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm
nelsonchung@gps1004:~/myandroid9.1/hardware/libhardware_legacy/gps$
那32bit該怎麼看呢??
Reference:
http://www.thegeekstuff.com/2010/12/linux-32-or-64-bit/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+TheGeekStuff+(The+Geek+Stuff)
沒有留言:
張貼留言