(unofficial mirror fork of merryhime/dynarmic)
4e89756169
c0c715505 oaknut: pragma once git-subtree-dir: externals/oaknut git-subtree-split: c0c715505020e69e3acbd959cbfe112083f292b5 |
||
---|---|---|
.github/workflows | ||
include/oaknut | ||
tests | ||
.clang-format | ||
.gitignore | ||
CMakeLists.txt | ||
LICENSE | ||
README.md |
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.