asmpeach at crates.io asmpeach at docs.rs

asmpeach

x86_64 assembler

Get Started

How to use as an assembler command

cargo build ./target/debug/asmpeach <assembly-file in AT&T syntax>

How to use as a Rust crate

See documentation

```rust use asmpeach;

fn main() -> Result<(), Box>{ // you can pass a file(or string). let elfbuilder = asmpeach::assemblefile("asm.s", asmpeach::Syntax::ATANDT)?;

elf_builder.generate_elf_file("obj.o", 0o644)?;

Ok(())

} ```

Test

cargo test cargo test --features sample

Dependencies