https://github.com/hanabishirecca/bin-cpuflags-x86
A small CLI tool to detect CPU flags (instruction sets) of X86 binaries.
https://github.com/hanabishirecca/bin-cpuflags-x86
amd64 avx binary cpu cpuid dll elf exe executable instruction-set linux macho macos pe so sse windows x86 x86-64
Last synced: 2 days ago
JSON representation
A small CLI tool to detect CPU flags (instruction sets) of X86 binaries.
- Host: GitHub
- URL: https://github.com/hanabishirecca/bin-cpuflags-x86
- Owner: HanabishiRecca
- License: mit
- Created: 2023-10-22T17:22:15.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-12-16T16:01:07.000Z (7 months ago)
- Last Synced: 2025-12-20T07:02:04.377Z (7 months ago)
- Topics: amd64, avx, binary, cpu, cpuid, dll, elf, exe, executable, instruction-set, linux, macho, macos, pe, so, sse, windows, x86, x86-64
- Language: Rust
- Homepage:
- Size: 97.7 KB
- Stars: 35
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bin-cpuflags-x86
A small CLI tool to detect CPU flags (instruction sets) of X86 binaries.
## Usage
$ bin-cpuflags-x86 [...]
| Option | Description |
| ------------------ | ------------------------------------------------------------------------------------------- |
| `--mode ` | Select mode of operation: `detect`, `stats` or `details`. Default value is `detect`. |
| `-s`, `--stats` | Alias for `--mode stats`. Show info about feature sets usage. |
| `-d`, `--details` | Alias for `--mode details`. Show info about feature sets, instructions and registers usage. |
| `--output ` | Select output level: `normal`, `quiet` or `verbose`. Default value is `normal`. |
| `-q`, `--quiet` | Alias for `--output quiet`. Print only the result data. |
| `-v`, `--verbose` | Alias for `--output verbose`. Enable more verbose output. |
| `-h`, `--help` | Display help message and exit. |
| `--` | Stop reading any options and treat the next argument as a file path. |
## Download
You can download prebuilt binaries from the [releases](https://github.com/HanabishiRecca/bin-cpuflags-x86/releases) page.
## Building from the source
**Rust 1.85 or up is required.**
Install the Rust compiler and run:
$ cargo build --release
## Packages
### crates.io
- [`bin-cpuflags-x86`](https://crates.io/crates/bin-cpuflags-x86)
### AUR
- [`bin-cpuflags-x86`](https://aur.archlinux.org/packages/bin-cpuflags-x86)
- [`bin-cpuflags-x86-bin`](https://aur.archlinux.org/packages/bin-cpuflags-x86-bin)
### CachyOS
- [`bin-cpuflags-x86`](https://packages.cachyos.org/package/cachyos/x86_64/bin-cpuflags-x86)