Obtaining CPUID info
CPUID instruction opcode is 0fh, 0a2h (two bytes). An argument is passed in EAX. The argument selects information that should be returned by CPUID.
Obtaining CPUID info
CPUID instruction opcode is 0fh, 0a2h (two bytes). An argument is passed in EAX. The argument selects information that should be returned by CPUID.
그냥 상식수준에서
그냥 상식수준에서 얘기해봅니다.
일단 CPU ID읽는 방법을 CPU제조업체에서 제공하는 매뉴얼대로 구현해서 ID을 얻어오면 Datasheet토대로 캐시라인을 알아낼수 있을거 같은데요.
상식수준에서
상식수준에서 대답해보면
일단 CPU ID를 제조업체에서 제공하는 매뉴얼에 나와있는대로 읽어오고 그걸 토대로 datasheet에서 캐시라인크기를 확인하면 될거 같네요
CPU ID를 읽어서 확인할수도 있겠네요
상식수준에서 대답해보면
일단 CPU ID를 제조업체에서 제공하는 매뉴얼에 나와있는대로 읽어오고 그걸 토대로 datasheet에서 캐시라인크기를 확인하면 될거 같네요
움... 제가 검색을 잘
움...
제가 검색을 잘 못하는건지... 그 내용까지 나오는 매뉴얼을 못 찾았습니다...흑...
----------
I wanna know you~!
----------
I wanna know you~!
웬간한 최근
웬간한 최근 시스템에는 sysfs가 마운트 돼 있을 겁니다. 그렇다면 /sys/devices/system/cpu 아래에서 CPU 정보를 좀 얻으실 수 있습니다.
----
$PWD `date`
$PWD `date`
cpu id읽는 방법은
cpu id읽는 방법은 ....
google에서 cpu id라고 치니 3번째 항목에 좋은내용이 보이네요
http://grafi.ii.pw.edu.pl/gbm/x86/cpuid.html
인용해보자면
Obtaining CPUID info
CPUID instruction opcode is 0fh, 0a2h (two bytes). An argument is passed in EAX. The argument selects information that should be returned by CPUID.
CPU ID읽는 법
cpu id읽는 방법은 ....
google에서 cpu id라고 치니 3번째 항목에 좋은내용이 보이네요
http://grafi.ii.pw.edu.pl/gbm/x86/cpuid.html
인용해보자면
Obtaining CPUID info
CPUID instruction opcode is 0fh, 0a2h (two bytes). An argument is passed in EAX. The argument selects information that should be returned by CPUID.
오~
감사합니다~
----------
I wanna know you~!
----------
I wanna know you~!
CPUID는 어셈블리
CPUID는 어셈블리 명령어입니다.
inline asm으로 사용하셔야 하고요.
그리고 CPUID명령은 486중 일부와 펜티엄급부터 제공됩니다.
(CPUID 지원여부를 알려주는 정보는 EFLAGS에 있습니다. 아마 bit 21번인가 22번인가일겁니다)
인텔 프로세서 매뉴얼 중 Instruction Set 매뉴얼을 찾아보시기 바랍니다.
http://www.intel.com/products/processor/manuals/index.htm
Written By the Black Knight of Destruction
Written By the Black Knight of Destruction
댓글 달기