remove intermediate enum / directly encode assembly

This commit is contained in:
2026-06-11 21:49:04 -04:00
parent 91f5db6950
commit b03f755252
11 changed files with 414 additions and 668 deletions
+3 -4
View File
@@ -1,7 +1,6 @@
mod asm;
mod compile;
mod encode;
mod reg;
mod reg2;
mod test;
mod util;
@@ -11,7 +10,7 @@ use crate::{
io::CompilerMsg,
};
pub use asm::*;
pub use compile::*;
pub use encode::*;
pub use reg::*;
pub use test::bin::run as bin_test;
@@ -20,7 +19,7 @@ pub struct X86_64;
impl Arch for X86_64 {
const NAME: &str = "x86_64";
type Asm = Asm;
type Asm = Code;
type Addr = u64;
fn compile(p: &Program<Self>) -> Result<LinkedProgram<Self::Addr>, CompilerMsg> {
compile(p)