mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
fd34ef732d
- 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
14 lines
322 B
C
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");
|
|
}
|