TinyCC for Jim #347
MichaelMiR01
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a port of tcc4tcl to jim
Actual status: mostly working, but still some minor quirks.
I setup a fork on github https://github.com/MichaelMiR01/jimtcl/tree/tcc4tcl
This version comes with the necessary libtcc binaries and the necessary includes to run tcc under jim.
It still needs some extras in the configure call to get it working, especially since it needs to link to libtcc binary.
so the wohle configure looks like this
configure LDFLAGS="-Wl,-rpath=. -L. -ltcc" "CFLAGS= -s -O2" --full --with-ext=tcc
Under windows it requires to build jim --shared (libjim.dll ) so tcc can link back to jim, under linux it can link into jimsh also.
configure --host=i686-w64-mingw32 --shared LDFLAGS="-L. -ltcc" CFLAGS="-static-libgcc -s -m32" --full --with-ext="tcc"
I didn't find a way to integrate the flags into auto.def. Is there a way to do this?
I'm using a modified, zip-enabled version of libtcc, so the whole tcc install contains libtcc.dll or .so and includes.zip
See https://github.com/MichaelMiR01/ziptcc_dev for some details
The build test on github runs ok, so it now should be good to publish, if anyone is interested.
Constructive feedback is welcome, keep in mind I'm no professional coder, just writing code on my sparetime.
Michael
Beta Was this translation helpful? Give feedback.
All reactions