mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-06 23:19:58 +01:00
git-subtree-dir: externals/oaknut git-subtree-split: 86f2ca87222e59fb0b89b2f2a6b422a58a2e0892
Oaknut
A C++20 assembler for AArch64 (ARMv8.0)
Oaknut is a header-only library that allows one to dynamically assemble code in-memory at runtime.
Usage
Simple example:
using EmittedFunction = int (*)();
EmittedFunction EmitExample(oaknut::CodeGenerator& code, int value)
{
using namespace oaknut::util;
EmittedFunction result = code.ptr<EmittedFunction>();
code.MOVZ(W0, value);
code.RET();
return result;
}
License
This project is MIT licensed.
Description
Languages
C++
66%
POV-Ray SDL
31%
Pascal
2.1%
CMake
0.8%
Assembly
0.1%