CodeGenLib

Crates.ioCodeGenLib
lib.rsCodeGenLib
version0.0.1
sourcesrc
created_at2024-03-31 18:53:14.196861
updated_at2024-03-31 18:53:14.196861
descriptionA libary to generate x86-64Bit machine code (like LLVM)
homepage
repository
max_upload_size
id1191839
size110,274
Cr0a3 (Cr0a3)

documentation

https://docs.rs/CodeGenLib

README

A libary to generate x86-64Bit machine code

Error: Jit dosn't work

Example

use CodeGenLib::{Builder, ArtifactError};

pub fn main() -> Result<(), ArtifactError>{
    let mut builder = Builder::new();

    builder.add_function("call")
        .call("callme")
        .ret_int(5);

    builder.build("test.o")?;

    Ok(())
}

Documentation

Check out our documentation on https://docs.rs/CodeGenLib

Copyright

Copyright (C) 2024 Cr0a3

(!) Uses the faerie crate (https://crates.io/crates/faerie)

Commit count: 0

cargo fmt