x86_64 assembler
cargo build
./target/debug/asmpeach <assembly-file in AT&T syntax>
See documentation
use asmpeach;
fn main() -> Result<(), Box<dyn std::error::Error>>{
// you can pass a file(or string).
let elf_builder = asmpeach::assemble_file("asm.s", asmpeach::Syntax::ATANDT)?;
elf_builder.generate_elf_file("obj.o", 0o644)?;
Ok(())
}
cargo test
cargo test --features sample