Skip to content

jpe90/hello-cosmo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hello-cosmo

A makefile project to demonstrate building a portable Hello World executable with Cosmopolitan Libc

Building

Linux

$ make

MacOS

$ brew install x86_64-elf-gcc
$ make CC=x86_64-elf-gcc OBJCOPY=x86_64-elf-objcopy

Windows

See https://justine.lol/cosmopolitan/windows-compiling.html

Running

$ ./hello.com

Note: Running with ZSH

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'

About

A makefile project to demonstrate building a portable Hello World executable with Cosmopolitan Libc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published