cosmopolitan/tool/hello/hello.c
Justine Tunney 1422e96b4e
Introduce native support for MacOS ARM64
There's a new program named ape/ape-m1.c which will be used to build an
embeddable binary that can load ape and elf executables. The support is
mostly working so far, but still chasing down ABI issues.
2023-05-20 04:17:03 -07:00

12 lines
255 B
C

#include "libc/calls/calls.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\n");
}