Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. C/C++
  3. AsmJit

AsmJit

ZlibC++

A C++ library for low-latency machine code generation with support for x86, x64, ARM, and AArch64 architectures.

Visit WebsiteGitHubGitHub
4.5k stars580 forks0 contributors

What is AsmJit?

AsmJit is a C++ library for low-latency machine code generation that allows developers to assemble, compile, and generate executable code at runtime. It supports multiple CPU architectures including x86, x64, ARM, and AArch64, providing tools for building JIT compilers, emulators, and other performance-sensitive applications. The library offers both low-level assembler interfaces and higher-level compiler APIs to cater to different use cases.

Target Audience

System programmers, compiler developers, and engineers working on JIT compilers, emulators, virtual machines, or performance-critical applications that require runtime code generation.

Value Proposition

Developers choose AsmJit for its comprehensive multi-architecture support, low-latency performance, and clean modular API that simplifies machine code generation without sacrificing control or efficiency.

Overview

Low-latency machine code generation

Use Cases

Best For

  • Building just-in-time (JIT) compilers for dynamic languages
  • Creating emulators or virtual machines that require runtime code generation
  • Developing performance-critical applications that need to generate optimized machine code on-the-fly
  • Implementing domain-specific languages (DSLs) with custom code generation backends
  • Research and academic projects involving compiler construction or code generation techniques
  • Tools that require low-level assembly manipulation across multiple CPU architectures

Not Ideal For

  • Projects prioritizing rapid development over low-level control, where high-level languages or existing compilers suffice
  • Teams without expertise in CPU architectures or assembly programming, as AsmJit requires deep system knowledge
  • Applications with strict API stability requirements, given the documented breaking changes and maintenance overhead
  • Environments where memory safety is critical and JIT code generation risks are unacceptable, such as in secure sandboxed systems

Pros & Cons

Pros

Multi-Architecture Support

Supports x86, x64, ARM, and AArch64 through dedicated backend modules, enabling cross-platform code generation for diverse hardware.

Comprehensive Instruction Database

Includes a detailed database for querying instruction information and metadata, essential for tools that analyze or manipulate machine code.

Robust Testing Suite

Comes with extensive unit tests, integration tests, and benchmarks in the asmjit-testing directory, ensuring reliability and performance validation.

Clean Modular API

Emphasizes low-latency with a modular design that balances performance and flexibility, suitable for both academic and industrial use cases.

Cons

API Stability Risks

The project acknowledges breaking changes with a dedicated guide, leading to potential maintenance challenges and version compatibility issues.

Steep Learning Curve

Requires in-depth knowledge of CPU instruction sets and assembly programming, making it inaccessible for developers unfamiliar with low-level systems.

Complex Integration Setup

Involves CMake builds and manual configuration as per the documentation, which can be time-consuming compared to plug-and-play libraries.

Frequently Asked Questions

Quick Stats

Stars4,521
Forks580
Contributors0
Open Issues9
Last commit2 months ago
CreatedSince 2014

Tags

#compiler#jit-compilation#arm#aarch64#x86-64#assembler#low-latency#c-plus-plus#jit#x64#jit-compiler#x86#code-generation#cpp

Built With

C
CMake
C
C++

Links & Resources

Website

Included in

C/C++70.6k
Auto-fetched 20 hours ago

Related Projects

stbstb

stb single-file public domain libraries for C/C++

Stars33,866
Forks8,058
Last commit1 month ago
{fmt}{fmt}

A modern formatting library

Stars23,566
Forks2,900
Last commit3 days ago
xxHashxxHash

Extremely fast non-cryptographic hash algorithm

Stars11,064
Forks900
Last commit1 month ago
single_file_libssingle_file_libs

List of single-file C/C++ libraries, with emphasis on clause-less licenses.

Stars9,919
Forks646
Last commit9 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub