Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add building lcc as an APE executable #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mundusnine
Copy link

@mundusnine mundusnine commented Jul 24, 2024

Right now, lcc has limited OS support to only Windows and Linux.

This change enables compiling lcc using cosmopolitan libc which reconfigures stock GCC and Clang to output a POSIX-approved polyglot format that runs natively on Linux + Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS on AMD64 and ARM64.

As cosmopolitan had the kill function collide with the kill function in dag.c, we renamed the function to kkill, since it's basically kill kids... 🥲

If this change is accepted, in the future we could bundle all the executables into one lcc.com as APE executables have a pkzip section at their EOF to hold data in the executable as a self-contained environment we can fopen from.

Thank you for this great project !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant