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... :smiling_face_with_tear:
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.
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... :smiling_face_with_tear:
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 canfopen
from.Thank you for this great project !