CodeGenLib 0.0.1

A libary to generate x86-64Bit machine code (like LLVM)
Documentation
  • Coverage
  • 45.3%
    82 out of 181 items documented1 out of 94 items with examples
  • Size
  • Source code size: 109.77 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.3 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Cr0a3

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)