Monday, November 26, 2007

tinycc

i've been _trying_ to learn C. tinycc, beside being tiny, it compiles very quickly, allowing you to do cool things like script in C
#!/usr/bin/tcc -run

#include

int main(int argc, char *argv[]) {
printf("Hello World %s, %s", argv[0], argv[1]);
return 0;
}
and then run as
./file.c arg_1

which makes it easier for those c-fu to guess and check.
it also allows such nice things as c in python
which is like pyinline, but uses ctypes and doesn't need write access.

No comments: