A makefile project to demonstrate building a portable Hello World executable with Cosmopolitan Libc
$ make
$ brew install x86_64-elf-gcc
$ make CC=x86_64-elf-gcc OBJCOPY=x86_64-elf-objcopy
See https://justine.lol/cosmopolitan/windows-compiling.html
$ ./hello.com
ZSH does not currently work, you'll see the following error:
zsh: exec format error: ./hello.com
You need to run with Bash until a pending fix is merged upstream:
$ bash -c './hello.com'