Originally Posted by hawhill
knc1, what I don't really get is: what do you win by using binfmt_misc? There's the classic shebang notation anyway. Don't get me wrong, I like playing around with stuff, too, and am really curious if I'm missing some great possibilities...
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).