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
- Host: GitHub
- URL: https://github.com/jslegendre/macos-cpuid
- Owner: jslegendre
- Created: 2019-05-14T01:14:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-14T01:21:18.000Z (over 6 years ago)
- Last Synced: 2025-06-07T14:42:11.843Z (4 months ago)
- Topics: assembly, cpuid, macho, macos, x86-64
- Language: Assembly
- Size: 1.95 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`