Skip to main content

Crate ras

Crate ras 

Source
Expand description

ras - drop-in replacement for as / GAS

Assembly source (.s) to relocatable object files (.o). Supported: x86_64 and AArch64; ELF on Linux/BSD/Redox.

Re-exports§

pub use assembler::RasAssembler;
pub use error::RasError;
pub use object::ObjectWriteOptions;
pub use runtime::ExecutableMemory;
pub use runtime::RasRuntime;
pub use target::is_assembly_target_supported;
pub use target::is_jit_arch_supported;
pub use target::is_object_file_supported;
pub use target::supported_jit_targets_hint;

Modules§

assembler
Assembler: assembly text to object file, MIR to binary (JIT)
encoder
Binary instruction encoders for x86_64, AArch64, and RISC-V.
error
Error types for ras assembler
object
Object file generation: ELF (Linux/BSD), Mach-O (macOS), COFF/PE (Windows).
parser
Assembly text parser
runtime
Runtime compilation (JIT): MIR to executable memory
target
Target support: which (arch, OS) combinations are supported.

Structs§

Ras
Main assembler interface