arch refactor + backend ir start

This commit is contained in:
2026-06-06 21:00:39 -04:00
parent 0ac7c5cc02
commit 4587f687b9
22 changed files with 547 additions and 661 deletions
+12
View File
@@ -0,0 +1,12 @@
use crate::backend::{Addr, elf};
pub struct LinkedProgram {
pub code: Vec<u8>,
pub entry: Option<Addr>,
}
impl LinkedProgram {
pub fn to_elf(&self) -> Vec<u8> {
elf::create(&self.code, self.entry.expect("no start"))
}
}