æ¬æ¥ãªã©ã¤ãªã¼ã¸ã£ãã³æ§ãããDebug Hacksââãããã°ã極ãããã¯ããã¯ï¼ãã¼ã«ãã®ç®æ¬ãããã ãã¾ãããèè ã®çæ§ãåºç社ã®çæ§ãããã¨ããããã¾ãã ã¨ããããããã£ããã¨æ°ã«ãªãç« ã ããããã¤ã¾ãã§èªãã§ã¿ãã®ã§ãããæå¾ã®ç« ã#66.æå ã®x86ãã·ã³ã64bitã¢ã¼ã対å¿ãã©ããã調ã¹ããã§ã¯ã/proc/cpuinfo 㧠lm ã®æååãæ¢ãæ¹æ³ã¨ã以ä¸ã®ãã㪠CPUID å½ä»¤ãçºè¡ãã¦ä»èªåã使ã£ã¦ãããã·ã³ã®CPUã64bitã«å¯¾å¿ãã¦ãããã©ããã調ã¹ãããã¯ãç´¹ä»ããã¦ãã¾ããã #include <stdio.h> void cpuid(int op, unsigned int *eax, unsigned int *ebx, unsigned int *ecx, unsigned int *edx) { __asm__("cpuid" : "=a" (
{{#tags}}- {{label}}
{{/tags}}