Crates.io | asmpeach |
lib.rs | asmpeach |
version | 0.1.47 |
source | src |
created_at | 2020-10-10 04:28:08.18399 |
updated_at | 2020-10-15 03:51:27.221563 |
description | x86_64 assembler |
homepage | https://github.com/Drumato/asmpeach |
repository | https://github.com/Drumato/asmpeach |
max_upload_size | |
id | 297897 |
size | 131,392 |
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