make CFLAGS=-nostdlib\ -static\ -O2 34-asm
I suffered from finding the program that the optimizer will never ruin my code.
static long long
os_write(long long fd, void *buf, long long len) {
__asm__ volatile (
"mov x8,64\n"
"svc 0\n"
"ret\n"
);
__builtin_unreachable();
}__asm__ (
".globl os_write\n"
"os_write:\n"
"mov x8,64\n"
"svc 0\n"
"ret\n"
);