An open API service indexing awesome lists of open source software.

https://github.com/jslegendre/macos-cpuid

Using CPUID opcode on macOS
https://github.com/jslegendre/macos-cpuid

assembly cpuid macho macos x86-64

Last synced: 3 months ago
JSON representation

Using CPUID opcode on macOS

Awesome Lists containing this project

README

          

# macOS-CPUID
Using CPUID opcode on macOS

## Quick and Dirty
The source code on the [Wikipedia entry for CPUID](https://en.wikipedia.org/wiki/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`