Improved code generation

This commit is contained in:
Eduard Urbach 2024-07-04 12:32:56 +02:00
parent 75672c1e16
commit 0a661b4345
Signed by: eduard
GPG key ID: 49226B848C78F6C8
9 changed files with 70 additions and 23 deletions

11
tests/programs/exit.q Normal file
View file

@ -0,0 +1,11 @@
main() {
exit(f(1) + f(2) + f(3))
}
exit(code) {
syscall(60, code)
}
f(x) {
return x + 1
}