From: "Hanzac Chen":

> I think it will be quite useful to accepting source code from a input
> stream, not just read from the file specified in the arguments. If so, we
> can write some frontend programs to generate C code on the fly and redirect
> it to tcc to generate the binary code.

> If no file or input stream specified, tcc can use the standard input and
> this will be helpful to debug/testing becuase it already supports running
> code in memory.
> 
> - Hanzac
>

With no file specified it should show version and usage. Maybe like 
other programs use a single dash to mean stdin, for example:

compile to a.out: 
    cat foo.c | tcc - 

compile to exe: 
    cat foo.c | tcc - -o foo.exe

compile and run: 
    cat foo.c | tcc -run - arguments ...

Can you make a patch?

--- grischka



_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to