Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-28-2012, 08:31 PM   #151
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
You could probably force specific libraries to load first with -L, but there are already two known missing symlinks (and probably more), and the version numbers depend on which kindle firmware (tccmake works on DX/DXG/K3/K4/K5). Also, tccmake only supports script parameters $1 through $9, so for more parameters it would need to loop and shift. The more libraries you force, the less modules you can link, without adding complexity to the script.

When I searched for a solution to this problem (tcc only having PARTIAL support for the "ld scripting language"), the forums that discussed this problem called this a "library loader script" and I just continued to use that existing terminology. Because the solution that I used worked, I did not have to RTFM, so I did not learn the "right words" to call these things.

But even though tcc does not support all four ld scripting keywords, that is not the problem here. The real problem is that the old ld script points to a missing static link library, and tcc complains that it cannot find the library that the old "ld control script" pointed to. My simplified version removed the reference to the missing file (which may cause problems with static linking, but we are solving these problems as the need arises and that has not yet been a problem).

I just use tcc for testing simple stuff, and I use codesourcery for the final binary executable, which runs many time faster in most cases.

Last edited by geekmaster; 05-28-2012 at 08:35 PM.
geekmaster is offline   Reply With Quote
Old 05-28-2012, 08:46 PM   #152
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
It was a simple "yes/no" question about your tcc not about your tccmake.

I think that the leading: "could probably" translates into "untested".
I can't read anything else in the noise that is relevant to my question past the first ", but ..."

But thank you for your reply.
knc1 is offline   Reply With Quote
Old 05-28-2012, 08:59 PM   #153
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
It was a simple "yes/no" question about your tcc not about your tccmake.

I think that the leading: "could probably" translates into "untested".
I can't read anything else in the noise that is relevant to my question past the first ", but ..."

But thank you for your reply.
Your way has complications. My previous post gives the details. If you want to know WHAT the complications are of using your suggested method, go back and read past the ", but" in my previous post. I did not say I did not do it. In fact I did try that (successfully) and then I rejected it as version-dependent. I decided to fix the missing symlink instead of forcing libraries (that may not even be used all the time). I want to keep my scripts small and simple.

Last edited by geekmaster; 05-28-2012 at 09:02 PM.
geekmaster is offline   Reply With Quote
Old 05-28-2012, 09:12 PM   #154
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by geekmaster View Post
Your way has complications. My previous post gives the details. If you want to know WHAT the complications are of using your suggested method, go back and read past the ", but" in my previous post. I did not say I did not do it. In fact I did try that (successfully) and then I rejected it as version-dependent. I decided to fix the missing symlink instead of forcing libraries (that may not even be used all the time). I want to keep my scripts small and simple.
But why do you insist that everyone must make the same choices as yourself?
What are people here supposed to do that have objectives different than your own? Ignore you or feel free to ask what you have done and learned?
knc1 is offline   Reply With Quote
Old 05-28-2012, 09:22 PM   #155
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
But why do you insist that everyone must make the same choices as yourself?
What are people here supposed to do that have objectives different than your own? Ignore you or feel free to ask what you have done and learned?
I did not insist any such thing. People can add as much "noise" to their scripts and other code as they want to. The larger scripts do contain the MIT license, after all.

Why are you getting bent over my descriptions of how I *solved* the problems? And why argue over OTHER ways that these problems COULD have been solved? They ARE solved (until the next one comes along).
geekmaster is offline   Reply With Quote
Old 05-28-2012, 10:22 PM   #156
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by deep View Post
Another interesting link https://lkml.org/lkml/2002/6/8/74
That is interesting. It looks like their linux kernel patch adds the "cygwin shell" method of interpreting vfat shortcuts (.lnk files) as symlinks.

The only downside that I can see is that you would need to load your patched kernel with kexec, to avoid interfering with already fragile kindle OTA updates.

It might be safer to add these patches to a shell instead of the kernel, like how cygwin does it. Then do your tcc compiles inside the patched shell.

But really, the USB drive is large enough that we can just use renamed file copies instead of symlinks, which is how I handled this kind of problem in the past. If your library needs three names, just use three copies of that library on your vfat drive. Then you do not need non-standard and potentially fragile vfat symlink support.
geekmaster is offline   Reply With Quote
Old 05-29-2012, 02:00 AM   #157
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by geekmaster View Post
That is interesting. It looks like their linux kernel patch adds the "cygwin shell" method of interpreting vfat shortcuts (.lnk files) as symlinks.
Note the date of that e-mail.
If it hasn't made it into the kernel sources in ten years of waiting, it is unlikely to be added.
knc1 is offline   Reply With Quote
Old 05-29-2012, 03:52 AM   #158
deep
Enthusiast
deep began at the beginning.
 
Posts: 29
Karma: 10
Join Date: May 2012
Device: Kindle Touch
Quote:
Originally Posted by geekmaster View Post
That is interesting. It looks like their linux kernel patch adds the "cygwin shell" method of interpreting vfat shortcuts (.lnk files) as symlinks.

The only downside that I can see is that you would need to load your patched kernel with kexec, to avoid interfering with already fragile kindle OTA updates.

It might be safer to add these patches to a shell instead of the kernel, like how cygwin does it. Then do your tcc compiles inside the patched shell.

But really, the USB drive is large enough that we can just use renamed file copies instead of symlinks, which is how I handled this kind of problem in the past. If your library needs three names, just use three copies of that library on your vfat drive. Then you do not need non-standard and potentially fragile vfat symlink support.
Yup ... I guess we could go back to the original problem of interpreting the vfat as a linux partition by KT and a linux partion as a vfat by the PC ...
deep is offline   Reply With Quote
Old 05-29-2012, 03:55 AM   #159
deep
Enthusiast
deep began at the beginning.
 
Posts: 29
Karma: 10
Join Date: May 2012
Device: Kindle Touch
Quote:
Originally Posted by knc1 View Post
Note the date of that e-mail.
If it hasn't made it into the kernel sources in ten years of waiting, it is unlikely to be added.
Yes, It's a really old one ... I thought it might be an interesting way to approach the issue of symlinks... but since it hasn't grabbed the attention of kernel programmers for so many years, it's probably not a good solution ...

Last edited by deep; 05-29-2012 at 04:04 AM.
deep is offline   Reply With Quote
Old 05-29-2012, 07:47 AM   #160
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by deep View Post
Yes, It's a really old one ... I thought it might be an interesting way to approach the issue of symlinks... but since it hasn't grabbed the attention of kernel programmers for so many years, it's probably not a good solution ...
The Linux Kernel Project has had one (or more) rounds of patent issues over the implementation of VFAT.
Ten years ago feels about right for when they where heavily engaged with MS on the matter.
So this patch might have been ignored due to those troubles, not due to the quality of the patch or the idea.

Note: This is one of the reasons for so many options on the VFAT system.
That allows the selection of a combination of options required to mount most of the other "almost FAT" file systems without trampling on anyone's I.P. rights.
knc1 is offline   Reply With Quote
Old 06-27-2012, 12:15 PM   #161
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Smile interesting read.

Begin__AntiRant__

For a newb it's always tough to derive the noise from the wheat, the could from the should and the from the

This thread encompasses a range of subjects many of which are intriguing to a novice.

The way they are communicated is far less important than their content.

The threads that contain quality content like this will live on long after flame-fuelled troll drivel has sunk into the necro-abyss of google page 10.

Much appreciate the downloads and the efforts on all sides to drive this tool towards compliance despite all odds , regardless of the individual methodologies, the message is the same:
"Providing compliant tools for the betterment of all"
and that's worth applauding.

So nice one you few brave crew either driven, misguided or just OCD enough to do it.
We salute you.

End__AntiRant__

For my part I'm just relieved to find some vague assistance in getting anything to compile. Happy days. Perhaps I will find a howto step-by-step for slackware, c, arm and native, including all the tool-chains and references.
In the interim this is an excellent tool for trying out some code.

Thanks again.
twobob is offline   Reply With Quote
Old 06-27-2012, 12:19 PM   #162
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by twobob View Post
For my part I'm just relieved to find some vague assistance in getting anything to compile. Happy days. Perhaps I will find a howto step-by-step for slackware, c, arm and native, including all the tool-chains and references.
In the interim this is an excellent tool for trying out some code.

Thanks again.
Browse:
https://wiki.mobileread.com/wiki/Tools_Index
Follow:
https://www.mobileread.com/forums/sho...d.php?t=181068
as I finish its write-up. Currently you have to read all the posts.
knc1 is offline   Reply With Quote
Old 06-27-2012, 01:57 PM   #163
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by twobob View Post
So nice one you few brave crew either driven, misguided or just OCD enough to do it.
We salute you.
What worthwhile creation WASN'T from somebody with at least a "little" OCD? Just read a biography of any famous artist, musician, or computer programmer. It takes obsessive compulsion just to make the error-filled compiler output from any significant new program NOT make you run from the room screaming in horror!

Last edited by geekmaster; 06-27-2012 at 02:00 PM.
geekmaster is offline   Reply With Quote
Old 07-01-2012, 09:20 AM   #164
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Amen to that.

Quote:
Originally Posted by geekmaster View Post
What worthwhile creation WASN'T from somebody with at least a "little" OCD? Just read a biography of any famous artist, musician, or computer programmer. It takes obsessive compulsion just to make the error-filled compiler output from any significant new program NOT make you run from the room screaming in horror!
Seconded. Karma baby
twobob is offline   Reply With Quote
Old 07-01-2012, 10:12 AM   #165
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
@twobob: Welcome to the 2600 club!
geekmaster is offline   Reply With Quote
Reply

Tags
tcc, tinycc


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
geekmaster simple touchscreen script support hack geekmaster Kindle Developer's Corner 12 04-21-2021 11:38 PM
Very simple guide to reading newspapers on the kindle, please? :) Pismire Amazon Kindle 7 06-01-2012 11:26 PM
Free (Kindle/Nook/ChristianBook) The Invitation: A Simple Guide to the Bible arcadata Deals and Resources (No Self-Promotion or Affiliate Links) 4 08-22-2011 01:05 PM
Simple guide to choosing a Creative Commons license for your work Bob Russell News 0 12-26-2006 11:10 AM


All times are GMT -4. The time now is 05:59 PM.


MobileRead.com is a privately owned, operated and funded community.