jit_rs 0.1.2

jit.rs is a library for generating, optimizing and running executable code at runtime
Documentation

jit.rs

jit.rs is a library for generating, optimizing and running executable code at runtime.

fn main() {
    // Machine code that returns int value 13
    let bytes = [0xb8, 0x0d, 0x00, 0x00, 0x00, 0xc3];

    // Execute code stored in `bytes`
    let r = unsafe { jit_rs::execute_bytes::<i32>(&bytes) };

    // Prints 13
    println!("Hello, world! {}", r);
}