3 releases
0.1.47 | Oct 15, 2020 |
---|---|
0.1.46 | Oct 13, 2020 |
0.1.45 | Oct 10, 2020 |
#150 in #x86-64
120KB
3K
SLoC
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
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(())
}
Test
cargo test
cargo test --features sample
Dependencies
lib.rs
:
An x86_64 assembler.
Dependencies
~1.6–2.3MB
~46K SLoC