Replies: 5 comments
-
Congratulations on a wonderful achievement. You've produced something that has eluded many others for decades @jart. Well done. |
Beta Was this translation helpful? Give feedback.
-
Yeah absolutely, this is fantastic, congratulations! |
Beta Was this translation helpful? Give feedback.
-
Wonderful, cannot wait to test it out :) |
Beta Was this translation helpful? Give feedback.
-
This rocks! What a wonderful achievement! Congratulations on an incredible milestone 🎊🎉💥 |
Beta Was this translation helpful? Give feedback.
-
This is absolutely amazing. |
Beta Was this translation helpful? Give feedback.
-
Cosmopolitan Libc makes C a build-once run-anywhere language, like Java, except it doesn't need an interpreter or virtual machine. Instead, it reconfigures stock GCC and Clang to output a POSIX-approved polyglot format that runs natively on Linux + Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS or UEFI with the best possible performance and the tiniest footprint imaginable.
Changes
OpenExecutable
for restoring APE bf03b2e or alternativelyape-no-modify-self.o
da8a08fGetting Started
If you're doing your development work on Linux or BSD then you need just five files to get started. Here's what you do on Linux:
You now have a portable program. Please note that your APE binary will assimilate itself as a conventional resident of your platform after the first run, so it can be fast and efficient for subsequent executions.
So if you intend to copy the binary to Windows or Mac then please do that before you run it, not after.
If you're developing on MacOS you can install the GNU compiler collection for x86_64-elf via homebrew:
Then in the above scripts just replace
gcc
andobjcopy
withx86_64-elf-gcc
andx86_64-elf-objcopy
to compile your APE binary.If you're developing on Windows then you need to download an x86_64-pc-linux-gnu toolchain beforehand. See the Compiling on Windows tutorial. It's needed because the ELF object format is what makes universal binaries possible.
Cosmopolitan can also be compiled from source on any Linux distro.
Contributing
We have automated Travis CI testing. Any pull request you send is going to get feedback in 2 minutes and 16 seconds. That's how long Travis CI takes to test this whole repository, which builds 14,507 objects, 68 libraries, and 461 static executables, 289 of which are test executables which are run too. On a real PC, building and testing everything from scratch takes 34 seconds instead of two minutes. If the hostnames freebsd, openbsd, netbsd, rhel7, rhel5, xnu, win7, and win10 can be ssh'd into, then
make test -j8
takes 15 additional seconds to deploy and run all 300 test executables on those operating systems too. See CONTRIBUTING.md for further details.Support Vector
This discussion was created from the release Cosmopolitan v1.0.
Beta Was this translation helpful? Give feedback.
All reactions