mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
1422e96b4e
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.
12 lines
255 B
C
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");
|
|
}
|