Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • When I try to compile it, I get: cpumodel.S: Assembler messages:\n cpumodel.S:12: Error: bad register name `%rbp'\n cpumodel.S:13: Error: bad register name `%rsp' etc.
    – einpoklum
    Commented Dec 20, 2014 at 16:32
  • Also, it's not true that nothing else will. HWInfo uses a database of brand names and doesn't rely only on what the CPU itself reports.
    – einpoklum
    Commented Dec 20, 2014 at 16:33
  • 1
    Databases obviously work, but only if they contain what you want to look up. You stated on the other answer that it doesn’t work. Apparently, this code is only for x86-64, sorry about that. Since /proc/cpuinfo contains the same information any, I doubt it’ll yield anything useful.
    – Daniel B
    Commented Dec 20, 2014 at 16:42
  • Oh, on the contrary - it does work with HWInfo on Windows...
    – einpoklum
    Commented Dec 20, 2014 at 16:50
  • Yeah, so what? What make you think the Linux kernel has an integrated CPU model database? If you CPU does not support this CPUID query (maybe because it is disabled in the BIOS setup), you’re simply out of luck.
    – Daniel B
    Commented Dec 20, 2014 at 17:02