End of Stage 1

This commit is contained in:
2026-01-26 01:35:51 -05:00
parent 9fd722edd9
commit 9df9392972
5 changed files with 168 additions and 96 deletions

BIN
c/a.out

Binary file not shown.

Binary file not shown.

View File

@@ -1,4 +0,0 @@
int main() {
return 2;
}

View File

@@ -1,35 +0,0 @@
.file "return_2.c"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
pushl %ebp
.cfi_def_cfa_offset 8
.cfi_offset 5, -8
movl %esp, %ebp
.cfi_def_cfa_register 5
call __x86.get_pc_thunk.ax
addl $_GLOBAL_OFFSET_TABLE_, %eax
movl $2, %eax
popl %ebp
.cfi_restore 5
.cfi_def_cfa 4, 4
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .text.__x86.get_pc_thunk.ax,"axG",@progbits,__x86.get_pc_thunk.ax,comdat
.globl __x86.get_pc_thunk.ax
.hidden __x86.get_pc_thunk.ax
.type __x86.get_pc_thunk.ax, @function
__x86.get_pc_thunk.ax:
.LFB1:
.cfi_startproc
movl (%esp), %eax
ret
.cfi_endproc
.LFE1:
.ident "GCC: (GNU) 15.2.1 20260103"
.section .note.GNU-stack,"",@progbits