Fixed two things. Is it possible to edit the original post and attachment?
The fixes were:
1. The crt i used was not compatible, it messed up argc and argv in main. Therefore, i debugged the registers and memory at the start of execution to find argc and argv then modified the assembly, compiled it, put on the kindle and it worked well. More description down bottom.
2. Since above, it unlocked the ability to compile tcc with tcc directly on the kindle. Used that ability to troubleshoot why tcc -run - was not working and it was due to a missing object. Built that object, placed on kindle, and verified tcc can on the fly build and execute now.
I'll upload a new package after learning if editing is possible, outgrow I'll put in a new reply in this thread.
before fix 1,
int main(int arg, char * argv[])
was impossible to use argc and argv since they were sourced from the wrong location in the crt that's used in the package. This made a tcc built on kindle unworkable since all the options and code needs to come in through argv
|