Closed fuhsnn closed 9 months ago
asmfn.s
.text .globl asmfn asmfn: movl $-123, %eax ret .section .note.GNU-stack,"",@progbits
main.c
#include <stdio.h> extern int asmfn(void); int main() { printf("%d\n", asmfn()); }
run chibicc asmfn.s main.c got undefined reference to asmfn
chibicc asmfn.s main.c
undefined reference to asmfn
asmfn.s
main.c
run
chibicc asmfn.s main.c
gotundefined reference to asmfn