Files
lang/src/arch/x86_64/mod.rs
T
2026-06-06 21:31:14 -04:00

27 lines
459 B
Rust

mod asm;
mod encode;
mod reg;
mod test;
use crate::{
arch::Arch,
backend::{LinkedProgram, Program},
io::CompilerMsg,
};
pub use asm::*;
pub use encode::*;
pub use reg::*;
pub use test::bin::run as bin_test;
pub struct X86_64;
impl Arch for X86_64 {
const NAME: &str = "x86_64";
type Asm = Asm;
type Addr = u64;
fn compile(p: &Program<Self>) -> Result<LinkedProgram<Self::Addr>, CompilerMsg> {
encode_program(p)
}
}