Skip to content

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