Crates.io | x64_asm |
lib.rs | x64_asm |
version | 0.1.45 |
source | src |
created_at | 2020-06-15 07:34:36.097824 |
updated_at | 2020-10-08 07:42:08.933581 |
description | x86_64 assembler |
homepage | https://github.com/Drumato/x64-asm |
repository | https://github.com/Drumato/x64-asm |
max_upload_size | |
id | 254147 |
size | 132,055 |
x86_64 assembler
cargo build
./target/debug/x64_asm <assembly-file in AT&T syntax>
See documentation
use x64_asm;
fn main() -> Result<(), Box<dyn std::error::Error>>{
// you can pass a file(or string).
let elf_builder = x64_asm::assemble_file("asm.s", x64_asm::Syntax::ATANDT)?;
elf_builder.generate_elf_file("obj.o")?;
Ok(())
}
cargo test
cargo test --features sample