Yet another AArch64 emitter (currently unused, kept as a backup)
Find a file
2022-07-03 20:21:36 +01:00
include/oaknut Update notices 2022-07-03 20:21:36 +01:00
tests Update notices 2022-07-03 20:21:36 +01:00
.clang-format First commit 2022-07-02 20:31:43 +01:00
.gitignore First commit 2022-07-02 20:31:43 +01:00
CMakeLists.txt tests: Add more tests 2022-07-03 17:16:22 +01:00
LICENSE Update notices 2022-07-03 20:21:36 +01:00
README.md Update notices 2022-07-03 20:21:36 +01:00

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.