fork download
  1. #include <stdio.h>
  2. #include <inttypes.h>
  3.  
  4. int main() {
  5. uint32_t r[5] = {0};
  6. __asm("cpuid" : "+a"(r[0]), "=b"(r[1]), "=d"(r[2]), "=c"(r[3]));
  7. printf("name='%s'\n", (const char*)&r[1]);
  8. return 0;
  9. }
Success #stdin #stdout 0s 4440KB
stdin
Standard input is empty
stdout
name='GenuineIntel'