x64_asm

Crates.iox64_asm
lib.rsx64_asm
version0.1.45
sourcesrc
created_at2020-06-15 07:34:36.097824
updated_at2020-10-08 07:42:08.933581
descriptionx86_64 assembler
homepagehttps://github.com/Drumato/x64-asm
repositoryhttps://github.com/Drumato/x64-asm
max_upload_size
id254147
size132,055
Drumato (Drumato)

documentation

https://docs.rs/x64-asm

README

x64_asm at crates.io x64_asm at docs.rs

x64_asm

x86_64 assembler

Get Started

How to use as an assembler command

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

How to use as a Rust crate

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(())
}

Test

cargo test
cargo test --features sample

Dependencies

Commit count: 0

cargo fmt