shell script to c converter
Does anyone know of any tool which can 开发者_开发技巧convert shell script '.sh' into a C file '.c' ?
I doubt that any such tool exists. C and shell files are extremely different languages with completely different purposes, and there is no way to automatically convert one to the other.
you can try shc. Its not a compiler, but it does generate .c files during encoding/encrypting.
Otherwise, do it by hand. Learn to code in C and shell, then translate them yourself. that's the best way to do it.
精彩评论