Re: Making gcc read from the standard input

2007-01-11 Thread James Dennett
Paolo Bonzini wrote: > Tathagato Rai Dastidar wrote: >> Hello, >> >> Is there a way I can make GCC read a C or C++ code from the standard >> input instead of from a file? >> >> In my application software, I am generating some C code on the fly, >> writing it to a file, then using GCC to compile it.

Re: Making gcc read from the standard input

2007-01-11 Thread Paolo Bonzini
Tathagato Rai Dastidar wrote: Hello, Is there a way I can make GCC read a C or C++ code from the standard input instead of from a file? In my application software, I am generating some C code on the fly, writing it to a file, then using GCC to compile it. Instead of that, I want to invoke G

Making gcc read from the standard input

2007-01-10 Thread Tathagato Rai Dastidar
Hello, Is there a way I can make GCC read a C or C++ code from the standard input instead of from a file? In my application software, I am generating some C code on the fly, writing it to a file, then using GCC to compile it. Instead of that, I want to invoke GCC through a pipe, and write th