![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2025
Device: none
|
TinyC TCC for armhf hard float
Hi All,
Either looking for help or anyone that's interested in providing TinyC tcc (https://www.mobileread.com/forums//s...d.php?t=175834) and (https://www.mobileread.com/forums/sh...d.php?t=106537) for Kindles executable on Kindles that use hard float? I checked in with the latest here also, but none worked on the colorsoft kindle with hard float: https://www.mobileread.com/forums/sh...&postcount=113 So I came up with a plan. 1. Cross compile with the kox toolchain. Success. Helloworld (and others) cross compiled and executed successfully on colorsoft. 2. Get TCC cross compiling from amd64 linux to arm32 hf. Failed. see below. 3. This would be taking the package from 2 and compiling to execute on arm and compile for arm once step 2 succeeds... For 2, what was done 1. Grabbed almost latest branch of tcc from mob (latest has an error with atomic) 2. ./configure --enable-cross --disable-static 2a. I tried w/o the disable-static part also and same result 3. Makefile generated 4. make cross-arm 5. arm-tcc was generated. observed VFP was used and HARDFLOAT also 6. made hello.c as a traditional printf...return 0 program 7. compiled with arm-tcc taking note to a. not use stdlib b. not use stdinc c. add kox inc dir d. add kox lib dir e. manually include the kox crt* objects f. manually include the kox libc, ld-linux-armhd, libc_nonshared, libs along with the hello.o and link together with arm-tcc 8. transfer hello compiled and linked program to the colorsoft 9. executed it and observed: the printf statement worked. then illegal instruction error SIGILL (happened regardless of the disable-static flag from the configure step, as expected) 10. ran it under gdb on kterm on the colorsoft. wow, they have gdb on it! 11. observed the error was not in the hello code region, but in the ld-linux-armhd region. Not expecting their lib to have an illegal instruction, so suspecting the configure or make flags are improper for this target OR something bad about the ABI OR the libs I linked pulled in manually have some incompatibility with each other and or the colorsoft. Any ideas for other things to try, or anyone see directly what error was made and can point out the error? |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Screensavers hack for armhf firmwares | qqqqqqqqqqqz | Kindle Developer's Corner | 0 | 05-20-2025 05:25 AM |
ARMhf on the Kindle(s) | knc1 | Kindle Developer's Corner | 83 | 07-16-2017 09:34 AM |
Ripping Debian ARMhf packages for the Kindle | knc1 | Kindle Developer's Corner | 0 | 07-21-2014 08:55 AM |
The operator >> is undefined for the argument type(s) float, float | twobob | Kindle Developer's Corner | 10 | 09-05-2012 12:50 PM |
tcc on iriver Story HD | jmseight | iRiver Story | 2 | 05-02-2012 02:23 AM |