Replies: 1 comment
-
No need to go through this; just run |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Didn't see it discussed anywhere else, so I wanted to throw that in :)
Since Nelua can output intermediate C code it compiles to, that output can be then piped to Cosmopolitan CC to produce a single executable that runs natively on Linux + Mac + Windows + FreeBSD + OpenBSD 7.3 + NetBSD + BIOS with the best possible performance and the tiniest footprint imaginable.
The following steps are provided for Linux, but can be easily geared towards your OS:
cosmocc
.nelua --print-code YOUR_NELUA_ENTRYPOINT.nelua > SOME_NAME.c
to obtainSOME_NAME.c
filecosmocc -O3 -o RESULTING_EXE_NAME SOME_NAME.c
to obtain the executable that'll run on any of the platforms described earlier. Consider adding-mtiny
flag to reduce the size of the resulting executable at the expense of introducing GIL and limiting multithreaded execution.P.S.: I'm very new to Nelua and some or all steps might not be optimal :)
Beta Was this translation helpful? Give feedback.
All reactions