mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-13 12:26:30 +00:00
$ m=aarch64-tiny $ make -j8 m=$m o/$m/tool/hello/hello.com o/third_party/qemu/qemu-aarch64 $ o/third_party/qemu/qemu-aarch64 o/$m/tool/hello/hello.com hello world $ ls -hal o/$m/tool/hello/hello.com -rwxr-xr-x 1 jart jart 4.0K May 9 05:04 o/aarch64-tiny/tool/hello/hello.com
12 lines
261 B
C
12 lines
261 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 world\n");
|
|
}
|