Description:
C++ JIT assembler for x86 (IA32), x64 (AMD64, x86-64)
|
|
Type: Formula
|
Tracked Since: Dec 28, 2025
|
|
Links:
Homepage |
formulae.brew.sh
|
|
Category: Developer tools
|
|
Tags:
jit
assembler
c-plus-plus
x86
assembly
header-only
|
|
Install:
brew install xbyak
|
About:
Xbyak is a header-only C++ library that provides a JIT assembler for generating machine code on the fly. It allows developers to write assembly instructions using an intuitive, high-level C++ API, which are then assembled into executable memory at runtime. This enables highly optimized code paths tailored to specific CPU capabilities, such as AVX or AVX-512.
|
Key Features:
- Header-only library, no compilation required
- Supports x86 (IA32), x64 (AMD64), and AVX/AVX-512 instructions
- Intuitive C++ class-based API for defining instructions
- Cross-platform support (Windows, macOS, Linux)
|
Use Cases:
- Creating high-performance math libraries (e.g., matrix multiplication)
- Implementing dynamic dispatch for CPU-specific optimized kernels
- Building custom virtual machines or interpreters
- Rapid prototyping of assembly algorithms
|
Alternatives:
-
AsmJit
– AsmJit is a more feature-rich alternative with support for more architectures and advanced optimization passes, but Xbyak is often preferred for its simplicity and lightweight nature.
-
LLVM JIT
– LLVM provides a full compiler infrastructure with heavy optimizations, whereas Xbyak is a lightweight assembler focused purely on generating machine code.
|
| Detected |
Version |
Rev |
Change |
Commit |
| Nov 11, 2024 10:36am |
|
0 |
VERSION_BUMP |
a1b181db |
| Nov 11, 2024 10:16am |
|
0 |
VERSION_BUMP |
3724ce40 |
| Oct 31, 2024 1:16am |
|
0 |
VERSION_BUMP |
c4429922 |
| Oct 29, 2024 11:28pm |
|
0 |
VERSION_BUMP |
e512bab5 |
| Oct 13, 2024 9:54am |
|
0 |
VERSION_BUMP |
c5071d9c |
| Oct 11, 2024 1:24am |
|
0 |
VERSION_BUMP |
b6f6c208 |
| Oct 8, 2024 9:55am |
|
0 |
VERSION_BUMP |
034897d5 |
| Jan 3, 2024 10:08pm |
|
0 |
VERSION_BUMP |
2a200dcd |
| Dec 19, 2023 5:16pm |
|
0 |
VERSION_BUMP |
b43cafe5 |
| Jun 5, 2023 3:07am |
|
0 |
VERSION_BUMP |
79839bd2 |
|