Put _start and main call into builtins
This commit is contained in:
@ -1,6 +1,12 @@
|
||||
.global main
|
||||
.type main, @function
|
||||
|
||||
.global printi
|
||||
.type printi, @function
|
||||
|
||||
.global _start
|
||||
.type _start, @function
|
||||
|
||||
.text
|
||||
printi:
|
||||
addi sp, sp, -8
|
||||
@ -27,3 +33,9 @@ printi:
|
||||
lw ra, 4(sp)
|
||||
addi sp, sp, 8
|
||||
ret
|
||||
|
||||
_start:
|
||||
call "main"
|
||||
addi a0, zero, 0
|
||||
addi a7, zero, 93
|
||||
ecall
|
||||
|
Reference in New Issue
Block a user