Skip to content

jslegendre/macOS-CPUID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

macOS-CPUID

Using CPUID opcode on macOS

Quick and Dirty

The source code on the Wikipedia entry for CPUID will not work if you want to build a 64bit Mach-O file. This is a fork of that code to make it build/function on macOS

Build

I built this with GCC as the C library is required for printf.

gcc -arch x86_64 -e _main cpuid.s -o cpuid

Releases

No releases published

Packages

No packages published