mir
A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR (by vnmakarov)
asmjit
Low-latency machine code generation (by asmjit)
mir | asmjit | |
---|---|---|
22 | 10 | |
2,294 | 3,938 | |
- | 0.7% | |
8.7 | 7.9 | |
about 1 month ago | 27 days ago | |
C | C++ | |
MIT License | zlib License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mir
Posts with mentions or reviews of mir.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-09-09.
- A tiny self-remaking C program
- Mir (lightweight JIT) version 1.0.0
- QBE – Compiler Back End
-
Ravi is a dialect of Lua, with JIT and AOT compilers
MIR comes from the Rubyverse and isn't related to LLVM MLIR.
https://github.com/vnmakarov/mir?tab=readme-ov-file#mir
- Mir: Strongly typed IR to implement fast and lightweight interpreters and JITs
- Implementing Interactive Languages
- I developed a faster Ruby interpreter
-
Are Hoistings Possible for C++?
When you say a fork of LLVM, am I correct in assuming that you specifically mean a fork of Clang? I don't see how the compiler backend would affect support for language extensions, regardless of whether it's an exception to that such as Tcc, Cproc, the MIR C jitter, lacc, 8cc, 9cc, and chibicc. Most of those are not for production, excluding Cproc and Tcc (at least according to Suckless or Oasis).
-
Suggestion for a backend?
MIR
- Ask HN: Recommendation for general purpose JIT compiler
asmjit
Posts with mentions or reviews of asmjit.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-08-15.
- Book – Writing a C Compiler: Build a Real Programming Language from Scratch
-
The 6502 instruction set as a database
Some other instruction sets in some JSON: https://github.com/asmjit/asmjit/tree/master/db
-
30 years of DOOM: new code, new bugs
The attentive reader may notice that this code is from a third-party library. So, we didn't want to include it in the article at first. However, we found something interesting. In 2017, somebody opened an issue in the asmjit project: the GCC 7.2 compiler issued a warning to the code above. The project authors fixed it:
-
How do I get the registers of a process in C++?
You can use something like https://asmjit.com/ to generate and call x64 code at runtime.
- Ask HN: Recommendation for general purpose JIT compiler
-
Compiler Design in C++
But an easy to create a JIT would be to use https://github.com/asmjit/asmjit, which is used in RPCS3.
-
Are there any low level, cross platform assembly languages that allow jumping to non labels?
You could go the way of https://asmjit.com (or forth) and make it your assembler DSL on top of the low-level call.
-
C++ libraries for filtering collections and expression trees
But if you're willing to get closer to the hardware is https://github.com/bitfunnel/nativejit/ and https://asmjit.com/
- AsmJit
-
Wrapping dynamically generated void(*)() pointers in try-catch?
https://github.com/asmjit/asmjit is nice. But using a JIT seems like a sledgehammer working around a lacking design.
What are some alternatives?
When comparing mir and asmjit you can also consider the following projects:
LuaJIT - Mirror of the LuaJIT git repository
fasmg - flat assembler g - adaptable assembly engine
Cwerg - The best C-like language that can be implemented in 10kLOC.
oneDNN - oneAPI Deep Neural Network Library (oneDNN)
qbe-rs - QBE IR in natural Rust data structures
mlibc - Portable C standard library
kcs - Scripting in C with JIT(x64)/VM.
ecl
dynarmic - An ARM dynamic recompiler.
terra - Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language.
ChrysaLisp - Parallel OS, with GUI, Terminal, OO Assembler, Class libraries, C-Script compiler, Lisp interpreter and more...