remove intermediate enum / directly encode assembly
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user