start.S (368B)
1 /* Linux riscv64 entry stub for the tcc-cc suite — same shape as 2 * tcc/cc/aarch64/start.S: pull argc/argv off the kernel-supplied 3 * stack frame, call main, exit with main's return value. */ 4 5 .globl _start 6 _start: 7 ld a0, 0(sp) /* argc */ 8 addi a1, sp, 8 /* argv */ 9 call main 10 li a7, 93 /* NR_exit */ 11 ecall