tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] How about the source code accepted as a input stream


From: grischka
Subject: Re: [Tinycc-devel] How about the source code accepted as a input stream
Date: Tue, 25 Mar 2008 22:17:49 +0100

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]