x86_64 compiler + elf output (can compile code that returns exit code)

This commit is contained in:
2026-06-03 01:50:43 -04:00
parent 473ddab0d4
commit 380a0f977a
11 changed files with 422 additions and 76 deletions
+17
View File
@@ -1 +1,18 @@
pub mod arch;
pub mod elf;
mod test;
pub use arch::*;
pub use test::*;
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Addr(u64);
impl Addr {
const NONE: Self = Self(!0);
pub fn val(&self) -> u64 {
self.0
}
}
pub enum Asm {
X86_64(x86_64::Asm),
}