Okay, sorted through all the issues. Attached is a release of the TCC program that runs on Kindles with hard float. This was built from the open source TCC mob branch and assembled with other contents and sometimes with changes as described below.
INSTALLATION
Prerequisites: A jailbroken Kindle. Said Kindle on a higher SW version that uses hardfloat. A way to transfer this package to the Kindle. A way to have a terminal on the kindle.
Same installation routine as geekmaster's package, so copying verbatim but only changing the package name.
1) download and extract kindlehf-tcc-1.0-0928.tar.gz (below) to /mnt/us (USB drive)
2) install: "/mnt/us/tcc/install"
3) compile: "tccmake demo"
4) run: "./demo"
5) Watch the kindle draw square and round tubes on its eink screen.
FILE CONTENTS
The file contains the following, structured as name followed by description:
1) tcc - The program which was newly built for arm hard float using kox toolkit from tcc mob branch sources with changes
From geekmaster's package, some with changes
2) tccmake - a convenience makefile
3) install - script to install it so you can just run tcc or tccmake from anywhere
4) uninstall - script to undo the installation of tcc and tccmake
5) tcc.libc.so - C Library helper to address full path to libc
6) tcc.libpthread.so - C Library helper to address full path to libc
7) demo - executable demo program of dithermatron (screenshot from colorsoft attached)
8) demo.c - the source of the program, so your installation can be quickly tested by compiling it
9) lib directory and contents - C runtime initialization objects.
10) include (stdarg.h and stddef.h, i think) - the root include of kox lacked these, so i grabbed from here
From kox toolkit:
11) include directory (except the two files above) - So tcc has heads to reference for compilations
History, Changes, and Tech Notes
FINAL NOTES
TCC is a single pass compiler, so you can get much faster code with GCC. However, it is small and is fairly easy to build, so it's good to put on a jailbroken kindle and execute directly on it. It has some support for debugging, since kindle has gdb. Just put -g option into your makefile. Sometimes things get a little weird in gdb though.
Not implemented: If you come across the tcc -run option or programmatically embedding C into your program to on the fly compile and executing it, well that's unfortunately not going to work on this. Maybe later. I did not compile libtcc1.a. Even if libtcc1.a is compiled and put somewhere, I probably broke the loader for it to ensure I could get this functional, so it will likely need a new tcc executable along with the libtcc1.a. Maybe will do this change by making tcc on kindlehf compile for kindlehf and remove the kox toolkit from the equation.
INSTALLATION
Prerequisites: A jailbroken Kindle. Said Kindle on a higher SW version that uses hardfloat. A way to transfer this package to the Kindle. A way to have a terminal on the kindle.
Spoiler:
Same installation routine as geekmaster's package, so copying verbatim but only changing the package name.
1) download and extract kindlehf-tcc-1.0-0928.tar.gz (below) to /mnt/us (USB drive)
2) install: "/mnt/us/tcc/install"
3) compile: "tccmake demo"
4) run: "./demo"
5) Watch the kindle draw square and round tubes on its eink screen.
FILE CONTENTS
The file contains the following, structured as name followed by description:
1) tcc - The program which was newly built for arm hard float using kox toolkit from tcc mob branch sources with changes
From geekmaster's package, some with changes
2) tccmake - a convenience makefile
3) install - script to install it so you can just run tcc or tccmake from anywhere
4) uninstall - script to undo the installation of tcc and tccmake
5) tcc.libc.so - C Library helper to address full path to libc
6) tcc.libpthread.so - C Library helper to address full path to libc
7) demo - executable demo program of dithermatron (screenshot from colorsoft attached)
8) demo.c - the source of the program, so your installation can be quickly tested by compiling it
9) lib directory and contents - C runtime initialization objects.
10) include (stdarg.h and stddef.h, i think) - the root include of kox lacked these, so i grabbed from here
From kox toolkit:
11) include directory (except the two files above) - So tcc has heads to reference for compilations
History, Changes, and Tech Notes
Spoiler:
FINAL NOTES
TCC is a single pass compiler, so you can get much faster code with GCC. However, it is small and is fairly easy to build, so it's good to put on a jailbroken kindle and execute directly on it. It has some support for debugging, since kindle has gdb. Just put -g option into your makefile. Sometimes things get a little weird in gdb though.
Not implemented: If you come across the tcc -run option or programmatically embedding C into your program to on the fly compile and executing it, well that's unfortunately not going to work on this. Maybe later. I did not compile libtcc1.a. Even if libtcc1.a is compiled and put somewhere, I probably broke the loader for it to ensure I could get this functional, so it will likely need a new tcc executable along with the libtcc1.a. Maybe will do this change by making tcc on kindlehf compile for kindlehf and remove the kox toolkit from the equation.






