View Single Post
Old 02-29-2012, 11:49 PM   #92
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
One less process creation.
shebang takes two (shell and shell proc'ing lua) sometimes three, depending on how it got called.

kernel binfmt_misc only has to proc' one process (lua) and that is probably in the kernel's cache buffers (a single process clone call).

Too bad tcc doesn't do ARM code (just x86 and a bit of MIPS).
tcc DOES do arm code. lrizzo posted it on his web page with his first kiterm a long time ago. I also built it from source (static and lib-dependent versions) that work in the kindle without optware, and generate arm code. I have a static nano too. Like lrizzo, I do not have all the headers I need though... hello.c worked fine. To find the latest arm stuff, you need to search for tinycc, not tcc...

The nice thing about static linking is they work on all kindle models. Lib-dependent versions complain about wrong or missing libs when you move them to a different kindle model.

Last edited by geekmaster; 02-29-2012 at 11:55 PM.
geekmaster is offline   Reply With Quote