[Top][All Lists]
[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
- [Tinycc-devel] How about the source code accepted as a input stream, Hanzac Chen, 2008/03/19
- Re: [Tinycc-devel] How about the source code accepted as a input stream,
grischka <=
- Re: [Tinycc-devel] How about the source code accepted as a input stream, Hanzac Chen, 2008/03/29
- Re: [Tinycc-devel] How about the source code accepted as a inputstream, grischka, 2008/03/29
- Re: [Tinycc-devel] How about the source code accepted as a inputstream, Hanzac Chen, 2008/03/30
- Re: [Tinycc-devel] How about the source code accepted as a inputstream, grischka, 2008/03/30
- Re: [Tinycc-devel] How about the source code accepted as a inputstream, Hanzac Chen, 2008/03/31
- Re: [Tinycc-devel] How about the source code accepted as a inputstream, grischka, 2008/03/31