syscalls.zr

This commit is contained in:
2026-01-18 09:57:28 +01:00
parent 65913868b0
commit d0a4fb7293
5 changed files with 450 additions and 55 deletions

View File

@@ -64,6 +64,11 @@ fn compile_file(args: Args) -> Result<(), ZernError> {
let mut analyzer = analyzer::Analyzer::new();
let mut codegen = codegen_x86_64::CodegenX86_64::new(&mut analyzer);
codegen.emit_prologue()?;
compile_file_to(
&mut codegen,
"syscalls.zr",
include_str!("std/syscalls.zr").into(),
)?;
compile_file_to(&mut codegen, "std.zr", include_str!("std/std.zr").into())?;
compile_file_to(
&mut codegen,