Erik Leunissen wrote:
L.S.I would like to compile C code by feeding it to gcc (or cc) from stdin, instead of specifying an input file. What I want would result in a command line like:echo "ThisWouldNeedToBeCcode" | gcc -o out.o
You could have your program write to a fifo and have gcc read from that. Short of that, the only way to use pipes would be a wrapper script.
LL