cosmopolitan/tool/hello/hello.c
Justine Tunney fd34ef732d
Make considerably more progress on AARCH64
- Utilities like pledge.com now build
- kprintf() will no longer balk at 48-bit addresses
- There's a new aarch64-dbg build mode that should work
- gc() and defer() are mostly pacified; avoid using them on aarch64
- THIRD_PART_STB now has Arm Neon intrinsics for fast image handling
2023-05-12 22:42:57 -07:00

14 lines
322 B
C

#include "libc/calls/calls.h"
#include "libc/intrin/kprintf.h"
#include "libc/str/str.h"
// hello world with minimal build system dependencies
static ssize_t Write(int fd, const char *s) {
return write(fd, s, strlen(s));
}
int main(int argc, char *argv[]) {
Write(1, "hello world\n");
kprintf("hello world\n");
}