io.printf, please dont look at it

This commit is contained in:
2026-03-14 11:24:51 +01:00
parent 100b752eee
commit 4a60c1fc12
6 changed files with 91 additions and 149 deletions

View File

@@ -100,7 +100,7 @@ impl<'a> CodegenX86_64<'a> {
format!("section .data\n{}{}", self.data_section, self.output)
}
pub fn emit_prologue(&mut self, emit_start: bool) -> Result<(), ZernError> {
pub fn emit_prologue(&mut self, use_gcc: bool) -> Result<(), ZernError> {
emit!(
&mut self.output,
"section .note.GNU-stack
@@ -145,7 +145,7 @@ _builtin_syscall:
"
);
if emit_start {
if !use_gcc {
emit!(
&mut self.output,
"