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: Hanzac Chen
Subject: Re: [Tinycc-devel] How about the source code accepted as a input stream
Date: Sat, 29 Mar 2008 18:24:41 +0800

On Wed, Mar 26, 2008 at 5:17 AM, grischka wrote:
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

Yes.

I found it's already have a command line option "-pipe" but not implemented in the code. Shall we remove it? Is it for such function?




reply via email to

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