From mboxrd@z Thu Jan 1 00:00:00 1970 From: prabhum@msys-tech.com (prabhu) Date: Thu, 27 Jan 2011 15:23:28 +0530 Subject: How to identity processor architecture In-Reply-To: <21BC6FAC-048B-42A7-AA7C-4A89B2D0714A@cs.ucsd.edu> References: <4D410BBF.10203@msys-tech.com> <4D411359.2010905@msys-tech.com> <4D412AC3.1060003@msys-tech.com> <21BC6FAC-048B-42A7-AA7C-4A89B2D0714A@cs.ucsd.edu> Message-ID: <4D414098.5010706@msys-tech.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org >> 64-bit processors have lm ("long mode") in the flags section >> of cpuinfo whereas 32-bit processors have not. >> regards >> Dharmvir Kumar Thanks a lot folks. Adding more detail on this. Below detail helps to understand CPU architecture. _* *__*Finding CPU Arch*_ $ grep flags /proc/cpuinfo | uniq | egrep -o -w "rm|tm|lm" Under "Flags" section in /proc/cpuinfo, you will find any of the flags "tm" or "rm" or "lm" * rm (Real Mode) means it is a 16 bit processor * tm (Transparent Mode) means it is a 32 bit processor * lm (Long Mode) means it is a 64 bit processor Is this only way to find the processor architecture ???? Any C programming technique apart from using this /proc/cpuinfo detail? Thanks, Prabhu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110127/732cd8c0/attachment.html